Packages

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

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RandomGraph
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. 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

  1. 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

  2. def assignSchema: Array[String]

    Assign the type (schema) to all the vertices.

  3. 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

  4. def createNeo: String

    Generate the 'CREATE' statement to be used for creating the data graph in Neo4j.

  5. val eLabels: Set[String]
  6. def gen: (MuGraphAlgebra[String], String)

    Generate the random graph of type 'MuGraph' and the 'create' statement for creating the graph in Neo4j.

  7. def genElabels: Set[String]

    Generate the labels for edges.

  8. def genVLabels: VectoS

    Generate the labels for vertices.

  9. val le: Map[Pair, Set[String]]
  10. val lv: Array[String]
  11. 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

  12. val schema: Array[String]