Packages

class RandomGraph[N, E <: Edge[N], G[X, Y <: Edge[X]] <: AnyGraph[X, Y] with GraphLike[X, Y, G]] extends AnyRef

Supports random graph creation for graphs of any type with variable metrics.

N

Type of the nodes the generated will contain.

E

Kind of type of the edges the generated will contain.

G

Kind of type of the graph to be generated.

Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RandomGraph
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new RandomGraph(graphCompanion: GenericGraphFactory[G], order: Int, nodeFactory: => N, nodeDegree: NodeDegreeRange, edgeCompanions: Set[EdgeCompanionBase], connected: Boolean, weightFactory: Option[() => Long] = None, labelFactory: Option[() => Any] = None)(implicit nodeTag: ClassTag[N])

    graphCompanion

    The graph companion the factory method fromof which is to be called to create random graphs.

    order

    The total number of nodes the generated random graph should contain.

    nodeFactory

    The function responsible for generating nodes.

    nodeDegree

    The characteristics of node degrees such as the span of degrees for the graph to be generated.

    edgeCompanions

    The edge types to be used in the generated graph.

    connected

    Whether the generated graph should be connected.

Type Members

  1. final class DefaultLabelFactory extends AnyRef

    A stateful String generator with deterministic results.

    A stateful String generator with deterministic results.

    Attributes
    protected
  2. final class DefaultWeightFactory extends AnyRef
    Attributes
    protected
  3. final class Degrees extends AnyRef
    Attributes
    protected
  4. final class OuterElems extends AnyRef
    Attributes
    protected
  5. final class OuterNodes extends AnyRef
    Attributes
    protected
  6. class RandomEdge extends AnyRef
    Attributes
    protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from RandomGraph[N, E, G] toany2stringadd[RandomGraph[N, E, G]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (RandomGraph[N, E, G], B)
    Implicit
    This member is added by an implicit conversion from RandomGraph[N, E, G] toArrowAssoc[RandomGraph[N, E, G]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. val doTrace: Boolean
    Attributes
    protected
  9. def draw: G[N, E]

    Returns a random graph of the specified type and with the metrics passed to the enclosing class.

  10. def empty: G[N, E]

    Returns an empty graph of the type as specified for the enclosing class.

  11. def ensuring(cond: (RandomGraph[N, E, G]) => Boolean, msg: => Any): RandomGraph[N, E, G]
    Implicit
    This member is added by an implicit conversion from RandomGraph[N, E, G] toEnsuring[RandomGraph[N, E, G]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: (RandomGraph[N, E, G]) => Boolean): RandomGraph[N, E, G]
    Implicit
    This member is added by an implicit conversion from RandomGraph[N, E, G] toEnsuring[RandomGraph[N, E, G]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean, msg: => Any): RandomGraph[N, E, G]
    Implicit
    This member is added by an implicit conversion from RandomGraph[N, E, G] toEnsuring[RandomGraph[N, E, G]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean): RandomGraph[N, E, G]
    Implicit
    This member is added by an implicit conversion from RandomGraph[N, E, G] toEnsuring[RandomGraph[N, E, G]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. val graphCompanion: GenericGraphFactory[G]
  19. implicit val graphConfig: GraphConfig
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. val order: Int
  26. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. def trace(str: => String): Unit
    Attributes
    protected
  29. def traceln(str: => String): Unit
    Attributes
    protected
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. object RandomEdge
    Attributes
    protected

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated
  2. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from RandomGraph[N, E, G] toStringFormat[RandomGraph[N, E, G]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  3. def [B](y: B): (RandomGraph[N, E, G], B)
    Implicit
    This member is added by an implicit conversion from RandomGraph[N, E, G] toArrowAssoc[RandomGraph[N, E, G]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromRandomGraph[N, E, G] to any2stringadd[RandomGraph[N, E, G]]

Inherited by implicit conversion StringFormat fromRandomGraph[N, E, G] to StringFormat[RandomGraph[N, E, G]]

Inherited by implicit conversion Ensuring fromRandomGraph[N, E, G] to Ensuring[RandomGraph[N, E, G]]

Inherited by implicit conversion ArrowAssoc fromRandomGraph[N, E, G] to ArrowAssoc[RandomGraph[N, E, G]]

Ungrouped