Class PureBigraphHash

java.lang.Object
org.bigraphs.framework.simulation.encoding.hash.PureBigraphHash
All Implemented Interfaces:
BigraphHashFunction<PureBigraph>

public class PureBigraphHash extends Object implements BigraphHashFunction<PureBigraph>
Author:
Dominik Grzelak
  • Constructor Details

    • PureBigraphHash

      public PureBigraphHash()
  • Method Details

    • hash

      public long hash(PureBigraph bigraph)
      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 interface BigraphHashFunction<PureBigraph>
      Parameters:
      bigraph - the bigraph
      Returns:
      a possibly non-unique hash