class RandomGraph[TLabel] extends AnyRef
The 'RandomGraph' class is used to generate the random graphs of type 'MuGraph' and also the create statement for creating graph in Neo4j
- Alphabetic
- By Inheritance
- RandomGraph
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
RandomGraph(nVertices: Int, nLabels: Int, nEdges: Int, nELabels: Int = 2, maxElabelPerEdge: Int = 2, schemaType: Array[String] = Array ("Person", "Movie"), stream: Int = 0)(implicit arg0: ClassTag[TLabel])
- nVertices
number of vertices to be created
- nLabels
number of different labels for vertices
- nEdges
number of edges
- nELabels
number of edge labels
- maxElabelPerEdge
maximum number edge labels per edge
- schemaType
type of the vertices
- stream
the stream of words to be generated
Value Members
-
def
assignElabels(elabs: Set[String]): Map[Pair, Set[String]]
Assign the labels to edges.
Assign the labels to edges.
- elabs
the set of edge labels to be used for edges
-
def
assignSchema: Array[String]
Assign the type (schema) to all the vertices.
-
def
assignVLabels(vlabs: VectoS): Array[String]
Assigns the vertex labels to the vertices.
Assigns the vertex labels to the vertices.
- vlabs
the vector of labels to be assigned for vertices
-
def
createNeo: String
Generate the 'CREATE' statement to be used for creating the data graph in Neo4j.
- val eLabels: Set[String]
-
def
gen: (MuGraphAlgebra[String], String)
Generate the random graph of type 'MuGraph' and the 'create' statement for creating the graph in Neo4j.
-
def
genElabels: Set[String]
Generate the labels for edges.
-
def
genVLabels: VectoS
Generate the labels for vertices.
- val le: Map[Pair, Set[String]]
- val lv: Array[String]
-
def
pickELabels(elabs: Set[String]): Set[String]
Pick the labels to be assigned for the edges.
Pick the labels to be assigned for the edges.
- elabs
the set of edge labels to be used for edges
- val schema: Array[String]