Class PureBigraphGenerator
java.lang.Object
org.bigraphs.framework.core.alg.generators.RandomBigraphGeneratorSupport
org.bigraphs.framework.core.alg.generators.PureBigraphGenerator
A random generator for pure bigraphs. Uses
RandomBigraphGeneratorSupport.- Author:
- Dominik Grzelak
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bigraphs.framework.core.alg.generators.RandomBigraphGeneratorSupport
RandomBigraphGeneratorSupport.LinkStrategy -
Constructor Summary
ConstructorsConstructorDescriptionPureBigraphGenerator(DynamicSignature signature) PureBigraphGenerator(DynamicSignature signature, org.eclipse.emf.ecore.EPackage metaModel) -
Method Summary
Modifier and TypeMethodDescriptiongenerate(int t, int n, float p) generate(int t, int n, float p, float p_l, float p_e) generate(int t, int n, int s) generate(int t, int n, int s, float p) generate(int t, int n, int s, float p, float p_l, float p_e) Number of roots t must be greater or equal 0.org.eclipse.emf.ecore.EPackagesetLinkStrategy(RandomBigraphGeneratorSupport.LinkStrategy linkStrategy) Methods inherited from class org.bigraphs.framework.core.alg.generators.RandomBigraphGeneratorSupport
degreeOf, edgeLabelSupplier, getLinkStrategy, getStats, provideControlSupplier, setParentOfNode, split, vertexLabelSupplier
-
Constructor Details
-
PureBigraphGenerator
-
PureBigraphGenerator
-
-
Method Details
-
getModelPackage
public org.eclipse.emf.ecore.EPackage getModelPackage() -
generate
-
generate
-
generate
-
generate
-
generate
Number of roots t must be greater or equal 0.Note that the number of nodes m is: m = n - t.
- Parameters:
t- number of rootsn- number of nodes (inclusive t)s- number of sites (additionally to m)p- proportion of the nodes n being used for linking at allp_l- probability (or "weight") that an outer name will be createdp_e- probability (or "weight") that an edge will be created- Returns:
- a random bigraph according to the provided parameters
-
setLinkStrategy
public PureBigraphGenerator setLinkStrategy(RandomBigraphGeneratorSupport.LinkStrategy linkStrategy) - Overrides:
setLinkStrategyin classRandomBigraphGeneratorSupport
-