Boolean Operations on Graphs
From DocR21
The graph theory functionality within ACIS provides for four types of Boolean operations on graphs: unite, intersect, subtract and lose boundary, and subtract and keep boundary.
Figure. Graphs 1 and 2 depicts two two graphs. Both graphs contain the same graph edge bounded by graph vertices B and E.
Figure. Graph 1 Union with Graph 2 shows the union of graph 1 and graph 2. The result is a graph whose vertices and edges are the union of the vertices and edges of the original graph. As such, there are no duplicate vertices and edges even though they appear in the individual graphs.
The following figure shows the intersection of the two graphs which keeps only those vertices and edges that are common to both.
The following two figures show the results of two subtraction operations. The result of subtraction can be ambiguous, because an edge (such as B-E) might be half in a graph. For this reason the subtract method of generic_graph takes a logical option that tells if such edges should be kept or not. Figure. Graph 2 Subtracted from Graph 1 Not Keeping Boundary shows graph 2 subtracted from graph 1 with half edges not kept and Figure. Graph 2 Subtracted from Graph 1 Keeping Boundary show the half edges being kept.





