Class PureBigraphHash
java.lang.Object
org.bigraphs.framework.simulation.encoding.hash.PureBigraphHash
- All Implemented Interfaces:
BigraphHashFunction<PureBigraph>
- Author:
- Dominik Grzelak
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
hash
(PureBigraph bigraph) Computes a "hash" for a pure bigraph by only considering the number of places, edges, inner and outer names.
-
Constructor Details
-
PureBigraphHash
public PureBigraphHash()
-
-
Method Details
-
hash
Computes a "hash" for a pure bigraph by only considering the number of places, edges, inner and outer names. It does not compute a unique hash. However, it can be used as "pre-check" to early terminate a more complex algorithm.- Specified by:
hash
in interfaceBigraphHashFunction<PureBigraph>
- Parameters:
bigraph
- the bigraph- Returns:
- a possibly non-unique hash
-