Click or drag to resize

GraphHelperGetEquivalentOrAdd Method

Returns one graph from the given array of graphs that is equivalent to the candidate (sub)graph, or null if none exists, in that case the graph is added to the array of graphs. This method is (intended to be) thread-safe (it locks the array as needed, still allowing for a large amount of parallel equivalence checking if called by multiple threads).

Namespace:  de.unika.ipd.grGen.libGr
Assembly:  libGr (in libGr.dll) Version: GrGen.NET 7.2
Syntax
C#
public static IGraph GetEquivalentOrAdd(
	IGraph candidate,
	IList<IGraph> graphsToCheckAgainst,
	bool includingAttributes
)

Parameters

candidate
Type: de.unika.ipd.grGen.libGrIGraph
graphsToCheckAgainst
Type: System.Collections.GenericIListIGraph
includingAttributes
Type: SystemBoolean

Return Value

Type: IGraph
See Also