scalax.collection.constrained

GraphLike

trait GraphLike[N, E[X] <: EdgeLikeIn[X], +This[X, Y[X] <: EdgeLikeIn[X]] <: GraphLike[X, Y[X], This] with Set[GraphParam[X, Y[X]]] with Graph[X, Y[X]]] extends collection.GraphLike[N, E, This] with Constrained[N, E]

A template trait for graphs.

This trait provides the common structure and operations of immutable graphs independently of its representation.

If E inherits DirectedEdgeLike the graph is directed, otherwise it is undirected or mixed.

N

the user type of the nodes (vertices) in this graph.

E

the higher kinded type of the edges (links) in this graph.

This

the higher kinded type of the graph itself.

Self Type
This[N, E]
Linear Supertypes
Constrained[N, E], ConstraintHandlerMethods[N, E], ConstraintMethods[N, E], collection.GraphLike[N, E, This], GraphDegree[N, E], GraphTraversal[N, E], GraphBase[N, E], Serializable, Serializable, SetLike[GraphParam[N, E], This[N, E]], Subtractable[GraphParam[N, E], This[N, E]], GenSetLike[GraphParam[N, E], This[N, E]], (GraphParam[N, E]) ⇒ Boolean, IterableLike[GraphParam[N, E], This[N, E]], GenIterableLike[GraphParam[N, E], This[N, E]], TraversableLike[GraphParam[N, E], This[N, E]], GenTraversableLike[GraphParam[N, E], This[N, E]], Parallelizable[GraphParam[N, E], ParSet[GraphParam[N, E]]], TraversableOnce[GraphParam[N, E]], GenTraversableOnce[GraphParam[N, E]], FilterMonadic[GraphParam[N, E], This[N, E]], HasNewBuilder[GraphParam[N, E], This[N, E]], Equals, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. GraphLike
  2. Constrained
  3. ConstraintHandlerMethods
  4. ConstraintMethods
  5. GraphLike
  6. GraphDegree
  7. GraphTraversal
  8. GraphBase
  9. Serializable
  10. Serializable
  11. SetLike
  12. Subtractable
  13. GenSetLike
  14. Function1
  15. IterableLike
  16. GenIterableLike
  17. TraversableLike
  18. GenTraversableLike
  19. Parallelizable
  20. TraversableOnce
  21. GenTraversableOnce
  22. FilterMonadic
  23. HasNewBuilder
  24. Equals
  25. AnyRef
  26. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. abstract type Config <: GraphConfig with GenConstrainedConfig

    Attributes
    protected
    Definition Classes
    GraphLike → GraphLike
  2. trait Cycle extends Path

    Definition Classes
    GraphTraversal
  3. trait DegreeFunction extends ((GraphDegree.this)#NodeT) ⇒ Int

    Definition Classes
    GraphDegree
  4. type DegreeNodeSeqEntry = (Int, This.NodeT)

    Definition Classes
    GraphDegree
  5. final class DegreeOrdering extends Ordering[(GraphDegree.this)#NodeT]

    Definition Classes
    GraphDegree
  6. trait Edge extends Serializable

    Definition Classes
    GraphBase
  7. class EdgeBase extends EdgeOut[N, E, GraphBase.NodeT, E] with InnerEdgeLike

    Definition Classes
    GraphBase
  8. sealed trait EdgeOrdering extends Ordering[EdgeT] with ElemOrdering

    Definition Classes
    GraphBase
  9. trait EdgeSet extends GraphLike.EdgeSet

    Definition Classes
    GraphLike → GraphBase
  10. abstract type EdgeSetT <: This.EdgeSet

    Definition Classes
    GraphLike → GraphBase
  11. abstract type EdgeT <: This.InnerEdge with This.InnerEdgeLike with Serializable

    Definition Classes
    GraphBase
  12. sealed trait ElemOrdering extends AnyRef

    Attributes
    protected
    Definition Classes
    GraphBase
  13. trait Filter[T] extends (T) ⇒ Boolean

    Definition Classes
    GraphDegree
  14. type InnerEdge = EdgeOut[N, E, This.NodeT, E]

    Attributes
    protected
    Definition Classes
    GraphBase
  15. trait InnerEdgeLike extends Iterable[GraphBase.NodeT] with Edge

    Definition Classes
    GraphBase
  16. trait InnerNodeLike extends GraphLike.InnerNodeLike

    Definition Classes
    GraphLike → GraphTraversal → GraphBase
  17. sealed class NoOrdering extends ElemOrdering

    Definition Classes
    GraphBase
  18. trait Node extends Serializable

    Definition Classes
    GraphBase
  19. abstract class NodeBase extends GraphLike.NodeBase with NodeOut[N] with InnerNodeLike

    Attributes
    protected
    Definition Classes
    GraphLike → GraphBase
  20. sealed trait NodeOrdering extends Ordering[GraphBase.NodeT] with ElemOrdering

    Definition Classes
    GraphBase
  21. trait NodeSet extends GraphLike.NodeSet

    Definition Classes
    GraphLike → GraphBase
  22. abstract type NodeSetT <: This.NodeSet

    Definition Classes
    GraphLike → GraphBase
  23. abstract type NodeT <: This.InnerNodeLike

    Definition Classes
    GraphLike → GraphTraversal → GraphBase
  24. trait Path extends Iterable[GraphParamOut[N, E]]

    Definition Classes
    GraphTraversal
  25. type Self = This[N, E]

    Attributes
    protected
    Definition Classes
    TraversableLike
  26. type ThisGraph = GraphLike.this.type

    Attributes
    protected
    Definition Classes
    GraphLike
  27. abstract class Traversal extends AnyRef

    Definition Classes
    GraphTraversal
  28. class WithFilter extends FilterMonadic[A, Repr]

    Definition Classes
    TraversableLike

Abstract Value Members

  1. abstract def +(node: N): This[N, E]

    Definition Classes
    GraphLike
  2. abstract def +#(edge: E[N]): This[N, E]

    Attributes
    protected
    Definition Classes
    GraphLike
  3. abstract def -(node: N): This[N, E]

    Definition Classes
    GraphLike
  4. abstract def -!#(edge: E[N]): This[N, E]

    Attributes
    protected
    Definition Classes
    GraphLike
  5. abstract def -#(edge: E[N]): This[N, E]

    Attributes
    protected
    Definition Classes
    GraphLike
  6. abstract def -?(node: N): This[N, E]

    Definition Classes
    GraphLike
  7. implicit abstract def config: generic.GraphConstrainedCompanion.Config with This.Config

    Definition Classes
    GraphLike
  8. abstract val constraintFactory: ConstraintCompanion[Constraint]

  9. implicit abstract val edgeManifest: Manifest[E[N]]

    Definition Classes
    GraphLike
  10. abstract def edges: This.EdgeSetT

    Definition Classes
    GraphBase
  11. abstract def empty: This[N, E]

    Definition Classes
    SetLike
  12. abstract def findCycle(nodeFilter: (This.NodeT) ⇒ Boolean, edgeFilter: (This.EdgeT) ⇒ Boolean, maxDepth: Int, nodeVisitor: (This.NodeT) ⇒ VisitorReturn, edgeVisitor: (This.EdgeT) ⇒ Unit, ordering: This.ElemOrdering): Option[This.Cycle]

    Definition Classes
    GraphTraversal
  13. abstract val graphCompanion: GraphConstrainedCompanion[This]

    Definition Classes
    GraphLike → GraphLike
  14. abstract def newEdge(innerEdge: E[This.NodeT]): This.EdgeT

    Attributes
    protected
    Definition Classes
    GraphBase
  15. abstract def newNode(n: N): This.NodeT

    Attributes
    protected
    Definition Classes
    GraphBase
  16. abstract def newTraversal(direction: Direction, nodeFilter: (This.NodeT) ⇒ Boolean, edgeFilter: (This.EdgeT) ⇒ Boolean, nodeVisitor: (This.NodeT) ⇒ VisitorReturn, edgeVisitor: (This.EdgeT) ⇒ Unit, ordering: This.ElemOrdering): This.Traversal

    Definition Classes
    GraphTraversal
  17. abstract def nodes: This.NodeSetT

    Definition Classes
    GraphBase
  18. abstract def preAdd(edge: E[N]): PreCheckResult

    This pre-check must return Abort if the addition is to be canceled, PostCheck if postAdd is to be called to decide or Complete if the outer edge is allowed to be added.

    This pre-check must return Abort if the addition is to be canceled, PostCheck if postAdd is to be called to decide or Complete if the outer edge is allowed to be added. If postAdd has been implemented, this method may always return PostCheck. This pre-check may be omitted by letting it always return postCheck and overriding the corresponding post-check commit* method. Use self to access the associated graph.

    edge

    to be added.

    returns

    The results of the pre-check containing the follow-up activity and possible any intermediate computation results to be used during the post-check. To add computation results PreCheckResult must be extended.

    Definition Classes
    ConstraintMethods
  19. abstract def preAdd(node: N): PreCheckResult

    This pre-check must return Abort if the addition is to be canceled, PostCheck if postAdd is to be called to decide or Complete if the outer node is allowed to be added.

    This pre-check must return Abort if the addition is to be canceled, PostCheck if postAdd is to be called to decide or Complete if the outer node is allowed to be added. If postAdd has been implemented, this method may always return PostCheck. This pre-check may be omitted by letting it always return postCheck and overriding the corresponding post-check commit* method. Use self to access the associated graph.

    node

    to be added

    returns

    The results of the pre-check containing the follow-up activity and possible any intermediate computation results to be used during the post-check. To add computation results PreCheckResult must be extended.

    Definition Classes
    ConstraintMethods
  20. abstract def preSubtract(edge: Graph.EdgeT, simple: Boolean): PreCheckResult

    This pre-check must return Abort if the subtraction of edge is to be canceled, PostCheck if postSubtract is to be called to decide or Complete if the the edge is allowed to be subtracted.

    This pre-check must return Abort if the subtraction of edge is to be canceled, PostCheck if postSubtract is to be called to decide or Complete if the the edge is allowed to be subtracted. This pre-check may be omitted by letting it always return postCheck and overriding the corresponding post-check commit* method. Use self to access the associated graph.

    edge

    the inner edge to be subtracted.

    simple

    true for standard (edge-only by -), false for ripple (by -!) removal.

    returns

    The results of the pre-check containing the follow-up activity and possible any intermediate computation results to be used during the post-check. To add computation results PreCheckResult must be extended.

    Definition Classes
    ConstraintMethods
  21. abstract def preSubtract(node: Graph.NodeT, forced: Boolean): PreCheckResult

    This pre-check must return Abort if the subtraction of node is to be canceled, PostCheck if postSubtract is to be called to decide or Complete if the the node is allowed to be subtracted.

    This pre-check must return Abort if the subtraction of node is to be canceled, PostCheck if postSubtract is to be called to decide or Complete if the the node is allowed to be subtracted. This pre-check may be omitted by letting it always return postCheck and overriding the corresponding post-check commit* method. Use self to access the associated graph.

    node

    the inner to be subtracted.

    forced

    true for standard (ripple by -), false for gentle (by -?) removal.

    returns

    The results of the pre-check containing the follow-up activity and possible any intermediate computation results to be used during the post-check. To add computation results PreCheckResult must be extended.

    Definition Classes
    ConstraintMethods
  22. abstract val self: Graph[N, E]

    When extending Constraint, self will denote the attached constrained graph.

    When extending Constraint, self will denote the attached constrained graph. The factory methods of the companion object scalax.collection.constrained.Graph initialize self to the correct graph instance. When extending Constrained, self will denote this graph.

    Definition Classes
    ConstraintMethods
  23. abstract def seq: Set[GraphParam[N, E]]

    Definition Classes
    GenSetLike → Parallelizable → GenTraversableOnce

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def &(that: GenSet[GraphParam[N, E]]): This[N, E]

    Definition Classes
    GenSetLike
  5. def &~(that: GenSet[GraphParam[N, E]]): This[N, E]

    Definition Classes
    GenSetLike
  6. def +(elem: GraphParam[N, E]): This[N, E]

    Definition Classes
    GraphLike → SetLike → GenSetLike
  7. def +(elem1: GraphParam[N, E], elem2: GraphParam[N, E], elems: GraphParam[N, E]*): This[N, E]

    Definition Classes
    SetLike
  8. def ++(elems: GenTraversableOnce[GraphParam[N, E]]): GraphLike.this.type

    Definition Classes
    GraphLike → GraphLike → SetLike
  9. def ++[B >: GraphParam[N, E], That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[This[N, E], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  10. def ++:[B >: GraphParam[N, E], That](that: Traversable[B])(implicit bf: CanBuildFrom[This[N, E], B, That]): That

    Definition Classes
    TraversableLike
  11. def ++:[B >: GraphParam[N, E], That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[This[N, E], B, That]): That

    Definition Classes
    TraversableLike
  12. def -(elem: GraphParam[N, E]): This[N, E]

    Definition Classes
    GraphLike → SetLike → Subtractable → GenSetLike
  13. def -(elem1: GraphParam[N, E], elem2: GraphParam[N, E], elems: GraphParam[N, E]*): This[N, E]

    Definition Classes
    Subtractable
  14. def -!(elem: GraphParam[N, E]): This[N, E]

    Definition Classes
    GraphLike
  15. def --(elems: GenTraversableOnce[GraphParam[N, E]]): This[N, E]

    Definition Classes
    GraphLike → GraphLike → Subtractable
  16. def --!(elems: GenTraversableOnce[GraphParam[N, E]]): This[N, E]

    Definition Classes
    GraphLike
  17. def /:[B](z: B)(op: (B, GraphParam[N, E]) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  18. def :\[B](z: B)(op: (GraphParam[N, E], B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  19. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  21. object Edge extends Serializable

    Definition Classes
    GraphBase
  22. object Node extends Serializable

    Definition Classes
    GraphBase
  23. def addString(b: StringBuilder): StringBuilder

    Definition Classes
    TraversableOnce
  24. def addString(b: StringBuilder, sep: String): StringBuilder

    Definition Classes
    TraversableOnce
  25. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Definition Classes
    TraversableOnce
  26. def aggregate[B](z: B)(seqop: (B, GraphParam[N, E]) ⇒ B, combop: (B, B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  27. def allNodes(innerNodes: Set[Graph.NodeT], innerEdges: Set[Graph.EdgeT]): Set[Graph.NodeT]

    Consolidates all inner nodes of the arguments by adding the edge ends of passedEdges to passedNodes.

    Consolidates all inner nodes of the arguments by adding the edge ends of passedEdges to passedNodes.

    Attributes
    protected
    Definition Classes
    ConstraintMethods
  28. def allNodes(passedNodes: Iterable[N], passedEdges: Iterable[E[N]]): Set[N]

    Consolidates all outer nodes of the arguments by adding the edge ends of passedEdges to passedNodes.

    Consolidates all outer nodes of the arguments by adding the edge ends of passedEdges to passedNodes.

    Attributes
    protected
    Definition Classes
    ConstraintMethods
  29. def andThen[A](g: (Boolean) ⇒ A): (GraphParam[N, E]) ⇒ A

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  30. final val anyEdge: (This.EdgeT) ⇒ Boolean

    Definition Classes
    GraphTraversal
  31. final val anyNode: (This.NodeT) ⇒ Boolean

    Definition Classes
    GraphTraversal
  32. final lazy val anyOrdering: AnyOrdering[N]

    Attributes
    protected
    Definition Classes
    GraphBase
  33. def apply(elem: GraphParam[N, E]): Boolean

    Definition Classes
    GenSetLike → Function1
  34. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  35. def asSortedString(nodeSeparator: String, edgeSeparator: String, nodesEdgesSeparator: String, withNodesEdgesPrefix: Boolean)(implicit ordNode: This.NodeOrdering, ordEdge: This.EdgeOrdering): String

    Definition Classes
    GraphLike
  36. final def bulkOp(elems: GenTraversableOnce[GraphParam[N, E]], isPlusPlus: Boolean): This[N, E]

    Attributes
    protected
    Definition Classes
    GraphLike
  37. def canEqual(that: Any): Boolean

    Definition Classes
    IterableLike → Equals
  38. var checkSuspended: Boolean

    This flag is used to prevent constraint checking for single additions and subtractions triggered by a multiple addition/subtraction such as ++=.

    This flag is used to prevent constraint checking for single additions and subtractions triggered by a multiple addition/subtraction such as ++=.

    Attributes
    protected
  39. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  40. def collect[B, That](pf: PartialFunction[GraphParam[N, E], B])(implicit bf: CanBuildFrom[This[N, E], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  41. def collectFirst[B](pf: PartialFunction[GraphParam[N, E], B]): Option[B]

    Definition Classes
    TraversableOnce
  42. def compose[A](g: (A) ⇒ GraphParam[N, E]): (A) ⇒ Boolean

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  43. def contains(elem: GraphParam[N, E]): Boolean

    Definition Classes
    GraphLike → SetLike → GenSetLike
  44. def copyToArray[B >: GraphParam[N, E]](xs: Array[B], start: Int, len: Int): Unit

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  45. def copyToArray[B >: GraphParam[N, E]](xs: Array[B]): Unit

    Definition Classes
    TraversableOnce → GenTraversableOnce
  46. def copyToArray[B >: GraphParam[N, E]](xs: Array[B], start: Int): Unit

    Definition Classes
    TraversableOnce → GenTraversableOnce
  47. def copyToBuffer[B >: GraphParam[N, E]](dest: Buffer[B]): Unit

    Definition Classes
    TraversableOnce
  48. def count(p: (GraphParam[N, E]) ⇒ Boolean): Int

    Definition Classes
    TraversableOnce → GenTraversableOnce
  49. final lazy val defaultEdgeOrdering: This.EdgeOrdering

    Definition Classes
    GraphBase
  50. final lazy val defaultNodeOrdering: This.NodeOrdering

    Definition Classes
    GraphBase
  51. def degreeCount(implicit nodeDegree: This.DegreeFunction, degreeFilter: (Int) ⇒ Boolean): SortedMap[Int, Int]

    Definition Classes
    GraphDegree
  52. def degreeNodeSeq(implicit nodeDegree: This.DegreeFunction, degreeFilter: (Int) ⇒ Boolean): Seq[(Int, This.NodeT)]

    Definition Classes
    GraphDegree
  53. def degreeNodesMap(implicit nodeDegree: This.DegreeFunction, degreeFilter: (Int) ⇒ Boolean): SortedMap[Int, Set[This.NodeT]]

    Definition Classes
    GraphDegree
  54. def degreeSeq(implicit nodeDegree: This.DegreeFunction, degreeFilter: (Int) ⇒ Boolean): Seq[Int]

    Definition Classes
    GraphDegree
  55. def degreeSet(implicit nodeDegree: This.DegreeFunction, degreeFilter: (Int) ⇒ Boolean): SortedSet[Int]

    Definition Classes
    GraphDegree
  56. def diff(that: GenSet[GraphParam[N, E]]): This[N, E]

    Definition Classes
    SetLike → GenSetLike
  57. def drop(n: Int): This[N, E]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  58. def dropRight(n: Int): This[N, E]

    Definition Classes
    IterableLike
  59. def dropWhile(p: (GraphParam[N, E]) ⇒ Boolean): This[N, E]

    Definition Classes
    TraversableLike → GenTraversableLike
  60. implicit final def edgeToEdgeCont(e: E[N]): E[This.NodeT]

    Attributes
    protected
    Definition Classes
    GraphBase
    Annotations
    @inline()
  61. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  62. def equals(that: Any): Boolean

    Definition Classes
    GraphLike → GenSetLike → Equals → AnyRef → Any
  63. def exists(p: (GraphParam[N, E]) ⇒ Boolean): Boolean

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  64. def filter(p: (GraphParam[N, E]) ⇒ Boolean): This[N, E]

    Definition Classes
    TraversableLike → GenTraversableLike
  65. def filterNot(p: (GraphParam[N, E]) ⇒ Boolean): This[N, E]

    Definition Classes
    TraversableLike → GenTraversableLike
  66. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  67. final def find(outerEdge: E[N]): Option[This.EdgeT]

    Definition Classes
    GraphLike
    Annotations
    @inline()
  68. final def find(outerNode: N): Option[This.NodeT]

    Definition Classes
    GraphLike
    Annotations
    @inline()
  69. def find(p: (GraphParam[N, E]) ⇒ Boolean): Option[GraphParam[N, E]]

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  70. final def findCycle: Option[This.Cycle]

    Definition Classes
    GraphTraversal
    Annotations
    @inline()
  71. def flatMap[B, That](f: (GraphParam[N, E]) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[This[N, E], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  72. def fold[A1 >: GraphParam[N, E]](z: A1)(op: (A1, A1) ⇒ A1): A1

    Definition Classes
    TraversableOnce → GenTraversableOnce
  73. def foldLeft[B](z: B)(op: (B, GraphParam[N, E]) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  74. def foldRight[B](z: B)(op: (GraphParam[N, E], B) ⇒ B): B

    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  75. def forall(p: (GraphParam[N, E]) ⇒ Boolean): Boolean

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  76. def foreach[U](f: (GraphParam[N, E]) ⇒ U): Unit

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
  77. final def get(outerEdge: E[N]): This.EdgeT

    Definition Classes
    GraphLike
    Annotations
    @inline()
  78. final def get(outerNode: N): This.NodeT

    Definition Classes
    GraphLike
    Annotations
    @inline()
  79. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  80. final def getOrElse(outerEdge: E[N], default: This.EdgeT): This.EdgeT

    Definition Classes
    GraphLike
    Annotations
    @inline()
  81. final def getOrElse(outerNode: N, default: This.NodeT): This.NodeT

    Definition Classes
    GraphLike
    Annotations
    @inline()
  82. def graphSize: Int

    Definition Classes
    GraphBase
  83. def groupBy[K](f: (GraphParam[N, E]) ⇒ K): Map[K, This[N, E]]

    Definition Classes
    TraversableLike → GenTraversableLike
  84. def grouped(size: Int): Iterator[This[N, E]]

    Definition Classes
    IterableLike
  85. def hasDefiniteSize: Boolean

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  86. def hashCode(): Int

    Definition Classes
    GenSetLike → AnyRef → Any
  87. def having(node: (This.NodeT) ⇒ Boolean, edge: (This.EdgeT) ⇒ Boolean): PartialFunction[GraphParam[N, E], Boolean]

    Definition Classes
    GraphLike
  88. def head: GraphParam[N, E]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  89. def headOption: Option[GraphParam[N, E]]

    Definition Classes
    TraversableLike → GenTraversableLike
  90. def init: This[N, E]

    Definition Classes
    TraversableLike → GenTraversableLike
  91. def initialize(nodes: Iterable[N], edges: Iterable[E[N]]): Unit

    Attributes
    protected
    Definition Classes
    GraphBase
  92. def inits: Iterator[This[N, E]]

    Definition Classes
    TraversableLike
  93. def intersect(that: GenSet[GraphParam[N, E]]): This[N, E]

    Definition Classes
    GenSetLike
  94. final def isAcyclic: Boolean

    Definition Classes
    GraphTraversal
    Annotations
    @inline()
  95. def isComplete: Boolean

    Definition Classes
    GraphTraversal
  96. def isConnected: Boolean

    Definition Classes
    GraphTraversal
  97. final def isCustomEdgeFilter(filter: (This.EdgeT) ⇒ Boolean): Boolean

    Definition Classes
    GraphTraversal
    Annotations
    @inline()
  98. final def isCustomEdgeVisitor(visitor: (This.EdgeT) ⇒ Unit): Boolean

    Definition Classes
    GraphTraversal
    Annotations
    @inline()
  99. final def isCustomNodeFilter(filter: (This.NodeT) ⇒ Boolean): Boolean

    Definition Classes
    GraphTraversal
    Annotations
    @inline()
  100. final def isCustomNodeUpVisitor(visitor: (This.NodeT) ⇒ Unit): Boolean

    Definition Classes
    GraphTraversal
    Annotations
    @inline()
  101. final def isCustomNodeVisitor(visitor: (This.NodeT) ⇒ VisitorReturn): Boolean

    Definition Classes
    GraphTraversal
    Annotations
    @inline()
  102. final def isCyclic: Boolean

    Definition Classes
    GraphTraversal
    Annotations
    @inline()
  103. def isEmpty: Boolean

    Definition Classes
    SetLike → IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  104. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  105. final def isTraversableAgain: Boolean

    Definition Classes
    TraversableLike → GenTraversableLike → GenTraversableOnce
  106. final def isTrivial: Boolean

    Definition Classes
    GraphBase
    Annotations
    @inline()
  107. def iterator: Iterator[GraphParamOut[N, E] with Serializable]

    Definition Classes
    GraphLike → GenSetLike → IterableLike → GenIterableLike
  108. def last: GraphParam[N, E]

    Definition Classes
    TraversableLike → GenTraversableLike
  109. def lastOption: Option[GraphParam[N, E]]

    Definition Classes
    TraversableLike → GenTraversableLike
  110. def map[B, That](f: (GraphParam[N, E]) ⇒ B)(implicit bf: CanBuildFrom[This[N, E], B, That]): That

    Definition Classes
    SetLike → TraversableLike → GenTraversableLike → FilterMonadic
    Annotations
    @migration
    Migration

    (Changed in version 2.8.0) Set.map now returns a Set, so it will discard duplicate values.

  111. def max[B >: GraphParam[N, E]](implicit cmp: Ordering[B]): GraphParam[N, E]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  112. def maxBy[B](f: (GraphParam[N, E]) ⇒ B)(implicit cmp: Ordering[B]): GraphParam[N, E]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  113. def maxDegree(implicit nodeDegree: This.DegreeFunction, degreeFilter: (Int) ⇒ Boolean): Int

    Definition Classes
    GraphDegree
  114. def min[B >: GraphParam[N, E]](implicit cmp: Ordering[B]): GraphParam[N, E]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  115. def minBy[B](f: (GraphParam[N, E]) ⇒ B)(implicit cmp: Ordering[B]): GraphParam[N, E]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  116. def minDegree(implicit nodeDegree: This.DegreeFunction, degreeFilter: (Int) ⇒ Boolean): Int

    Definition Classes
    GraphDegree
  117. def minusMinus(delNodes: Iterable[N], delEdges: Iterable[E[N]]): This[N, E]

    Attributes
    protected
    Definition Classes
    GraphLike → GraphLike
  118. def minusMinusNodesEdges(delNodes: Iterable[N], delEdges: Iterable[E[N]]): (Set[N], Set[E[N]])

    Attributes
    protected
    Definition Classes
    GraphLike
  119. def mkString: String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  120. def mkString(sep: String): String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  121. def mkString(start: String, sep: String, end: String): String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  122. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  123. def newBuilder: Builder[GraphParam[N, E], This[N, E]]

    Attributes
    protected[this]
    Definition Classes
    SetLike → TraversableLike → HasNewBuilder
  124. final val noEdgeAction: (This.EdgeT) ⇒ Unit

    Definition Classes
    GraphTraversal
  125. final val noNode: (This.NodeT) ⇒ Boolean

    Definition Classes
    GraphTraversal
  126. final val noNodeAction: (This.NodeT) ⇒ GraphTraversal.VisitorReturn.Value

    Definition Classes
    GraphTraversal
  127. final val noNodeUpAction: (This.NodeT) ⇒ Unit

    Definition Classes
    GraphTraversal
  128. final val noOrdering: This.NoOrdering

    Definition Classes
    GraphBase
  129. def nonEmpty: Boolean

    Definition Classes
    TraversableOnce → GenTraversableOnce
  130. final def nonTrivial: Boolean

    Definition Classes
    GraphBase
    Annotations
    @inline()
  131. final def notify(): Unit

    Definition Classes
    AnyRef
  132. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  133. def onAdditionRefused(refusedNodes: Iterable[N], refusedEdges: Iterable[E[N]], graph: Graph[N, E]): Boolean

    This handler is called whenever an addition violates the constraints.

    This handler is called whenever an addition violates the constraints. The provided default implementation is empty.

    refusedNodes

    the nodes passed to preAdd.

    refusedEdges

    the edges passed to preAdd.

    returns

    must be true if the handler has been overridden but it doesn't throw an exception.

    Definition Classes
    ConstraintHandlerMethods
  134. def onSubtractionRefused(refusedNodes: Iterable[Graph.NodeT], refusedEdges: Iterable[Graph.EdgeT], graph: Graph[N, E]): Boolean

    This handler is called whenever a subtraction violates the constraints.

    This handler is called whenever a subtraction violates the constraints. The provided default implementation is empty.

    refusedNodes

    the nodes passed to preSubtract.

    refusedEdges

    the edges passed to preSubtract.

    returns

    must be true if the handler has been overridden but it doesn't throw an exception.

    Definition Classes
    ConstraintHandlerMethods
  135. def order: Int

    Definition Classes
    GraphBase
  136. def par: ParSet[GraphParam[N, E]]

    Definition Classes
    Parallelizable
  137. def parCombiner: Combiner[GraphParam[N, E], ParSet[GraphParam[N, E]]]

    Attributes
    protected[this]
    Definition Classes
    SetLike → TraversableLike → Parallelizable
  138. final def partition(elems: GenTraversableOnce[GraphParam[N, E]]): Partitions[N, E]

    Attributes
    protected
    Definition Classes
    GraphLike
  139. def partition(p: (GraphParam[N, E]) ⇒ Boolean): (This[N, E], This[N, E])

    Definition Classes
    TraversableLike → GenTraversableLike
  140. def plusPlus(newNodes: Iterable[N], newEdges: Iterable[E[N]]): This[N, E]

    Attributes
    protected
    Definition Classes
    GraphLike → GraphLike
  141. def postAdd(newGraph: Graph[N, E], passedNodes: Iterable[N], passedEdges: Iterable[E[N]], preCheck: PreCheckResult): Boolean

    This post-check must return whether newGraph should be committed or the add operation is to be rolled back.

    This post-check must return whether newGraph should be committed or the add operation is to be rolled back. Use self to access the associated graph. For immutable graphs, self maintains the state before the addition but for mutable graphs, it is already mutated to the required state.

    newGraph

    the after-addition would-be graph waiting for commit.

    passedNodes

    nodes passed to the running add operation except those coming from node/edge input streams.

    passedEdges

    edges passed to the running add operation except those coming from edge input streams.

    Definition Classes
    ConstraintMethods
  142. def postSubtract(newGraph: Graph[N, E], passedNodes: Iterable[N], passedEdges: Iterable[E[N]], preCheck: PreCheckResult): Boolean

    This post-check must return whether newGraph should be committed or the subtraction is to be rolled back.

    This post-check must return whether newGraph should be committed or the subtraction is to be rolled back. Use self to access the associated graph. For immutable graphs, self maintains the state before the addition but for mutable graphs, it is already mutated to the required state.

    newGraph

    the after-subtraction would-be graph waiting for commit.

    Definition Classes
    ConstraintMethods
  143. def preAdd(elems: GraphParamIn[N, E]*): PreCheckResult

    This pre-check must return Abort if the addition of the outer nodes and/or edges in elems is to be canceled, PostCheck if postAdd is to be called to decide or Complete if the the outer nodes and/or edges are allowed to be added.

    This pre-check must return Abort if the addition of the outer nodes and/or edges in elems is to be canceled, PostCheck if postAdd is to be called to decide or Complete if the the outer nodes and/or edges are allowed to be added. If postAdd has been implemented, this method may always return PostCheck. The default implementation calls preAdd(node)/preAdd(edge) element-wise. As for most cases this won't be satisfactory a domain-specific implementation should be provided. Use self to access the associated graph.

    elems

    nodes and/or edges to be added possibly containing duplicates.

    returns

    The results of the pre-check containing the follow-up activity and possible any intermediate computation results to be used during the post-check. To add computation results PreCheckResult must be extended.

    Definition Classes
    ConstraintMethods
  144. def preCreate(nodes: Iterable[N], edges: Iterable[E[N]]): PreCheckResult

    This pre-check is called on constructing a graph through its companion object.

    This pre-check is called on constructing a graph through its companion object. It must return whether the graph is allowed to be populated with nodes and edges. The default implementation calls preAdd for each node and edge.

    Note that nodes and edges coming from node/edge input streams are not checked. So when utilizing streams the post check postAdd must be served.

    nodes

    the outer nodes the graph is to be populated with; nodes being edge ends may but need not be contained in nodes.

    edges

    the outer edges the graph is to be populated with.

    returns

    The results of the pre-check containing the follow-up activity and possible any intermediate computation results to be used during the post-check. To add computation results PreCheckResult must be extended.

    Definition Classes
    ConstraintMethods
  145. def preSubtract(nodes: ⇒ Set[Graph.NodeT], edges: ⇒ Set[Graph.EdgeT], simple: Boolean): PreCheckResult

    This pre-check must return Abort if the subtraction of nodes and/or edges is to be canceled, PostCheck if postSubtract is to be called to decide or Complete if nodes and/or edges are allowed to be subtracted.

    This pre-check must return Abort if the subtraction of nodes and/or edges is to be canceled, PostCheck if postSubtract is to be called to decide or Complete if nodes and/or edges are allowed to be subtracted. It is typically triggered by the -- operation. The default implementation element-wise calls preSubtract(node, simple) or preSubtract(edge, simple), respectively. As for most cases this won't be satisfactory a domain-specific implementation should be provided. Use self to access the associated graph.

    nodes

    the inner nodes to be subtracted not necessarily including the ends of edges to be subtracted. Call allNodes to get the complete set of nodes to be subtracted.

    edges

    the inner edges to be subtracted.

    simple

    true for standard (edge-only by -), false for ripple (by -!) removal.

    returns

    The results of the pre-check containing the follow-up activity and possible any intermediate computation results to be used during the post-check. To add computation results PreCheckResult must be extended.

    Definition Classes
    ConstraintMethods
  146. def product[B >: GraphParam[N, E]](implicit num: Numeric[B]): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  147. def reduce[A1 >: GraphParam[N, E]](op: (A1, A1) ⇒ A1): A1

    Definition Classes
    TraversableOnce → GenTraversableOnce
  148. def reduceLeft[B >: GraphParam[N, E]](op: (B, GraphParam[N, E]) ⇒ B): B

    Definition Classes
    TraversableOnce
  149. def reduceLeftOption[B >: GraphParam[N, E]](op: (B, GraphParam[N, E]) ⇒ B): Option[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  150. def reduceOption[A1 >: GraphParam[N, E]](op: (A1, A1) ⇒ A1): Option[A1]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  151. def reduceRight[B >: GraphParam[N, E]](op: (GraphParam[N, E], B) ⇒ B): B

    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  152. def reduceRightOption[B >: GraphParam[N, E]](op: (GraphParam[N, E], B) ⇒ B): Option[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  153. def repr: This[N, E]

    Definition Classes
    TraversableLike → GenTraversableLike
  154. def reversed: List[GraphParam[N, E]]

    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  155. def sameElements[B >: GraphParam[N, E]](that: GenIterable[B]): Boolean

    Definition Classes
    IterableLike → GenIterableLike
  156. def scan[B >: GraphParam[N, E], That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[This[N, E], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  157. def scanLeft[B, That](z: B)(op: (B, GraphParam[N, E]) ⇒ B)(implicit bf: CanBuildFrom[This[N, E], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  158. def scanRight[B, That](z: B)(op: (GraphParam[N, E], B) ⇒ B)(implicit bf: CanBuildFrom[This[N, E], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) The behavior of scanRight has changed. The previous behavior can be reproduced with scanRight.reverse.

  159. def size: Int

    Definition Classes
    TraversableOnce → GenTraversableOnce
  160. def slice(from: Int, until: Int): This[N, E]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  161. def sliding(size: Int, step: Int): Iterator[This[N, E]]

    Definition Classes
    IterableLike
  162. def sliding(size: Int): Iterator[This[N, E]]

    Definition Classes
    IterableLike
  163. def span(p: (GraphParam[N, E]) ⇒ Boolean): (This[N, E], This[N, E])

    Definition Classes
    TraversableLike → GenTraversableLike
  164. def splitAt(n: Int): (This[N, E], This[N, E])

    Definition Classes
    TraversableLike → GenTraversableLike
  165. def stringPrefix: String

    Definition Classes
    GraphLike → GraphLike → SetLike → TraversableLike → GenTraversableLike
  166. def subsetOf(that: GenSet[GraphParam[N, E]]): Boolean

    Definition Classes
    GenSetLike
  167. def subsets: Iterator[This[N, E]]

    Definition Classes
    SetLike
  168. def subsets(len: Int): Iterator[This[N, E]]

    Definition Classes
    SetLike
  169. def sum[B >: GraphParam[N, E]](implicit num: Numeric[B]): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  170. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  171. def tail: This[N, E]

    Definition Classes
    TraversableLike → GenTraversableLike
  172. def tails: Iterator[This[N, E]]

    Definition Classes
    TraversableLike
  173. def take(n: Int): This[N, E]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  174. def takeRight(n: Int): This[N, E]

    Definition Classes
    IterableLike
  175. def takeWhile(p: (GraphParam[N, E]) ⇒ Boolean): This[N, E]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  176. def thisCollection: Iterable[GraphParam[N, E]]

    Attributes
    protected[this]
    Definition Classes
    IterableLike → TraversableLike
  177. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, GraphParam[N, E], Col[GraphParam[N, E]]]): Col[GraphParam[N, E]]

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  178. def toArray[B >: GraphParam[N, E]](implicit arg0: ClassTag[B]): Array[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  179. def toBuffer[A1 >: GraphParam[N, E]]: Buffer[A1]

    Definition Classes
    SetLike → TraversableOnce → GenTraversableOnce
  180. def toCollection(repr: This[N, E]): Iterable[GraphParam[N, E]]

    Attributes
    protected[this]
    Definition Classes
    IterableLike → TraversableLike
  181. def toIndexedSeq: IndexedSeq[GraphParam[N, E]]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  182. def toIterable: Iterable[GraphParam[N, E]]

    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  183. def toIterator: Iterator[GraphParam[N, E]]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
  184. def toList: List[GraphParam[N, E]]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  185. def toMap[T, U](implicit ev: <:<[GraphParam[N, E], (T, U)]): Map[T, U]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  186. def toSeq: Seq[GraphParam[N, E]]

    Definition Classes
    SetLike → TraversableOnce → GenTraversableOnce
  187. def toSet[B >: GraphParam[N, E]]: Set[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  188. def toSortedString(nodeSeparator: String, edgeSeparator: String, nodesEdgesSeparator: String, withNodesEdgesPrefix: Boolean)(implicit ordNode: This.NodeOrdering, ordEdge: This.EdgeOrdering): String

    Definition Classes
    GraphLike
  189. def toStream: Stream[GraphParam[N, E]]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
  190. def toString(): String

    Definition Classes
    GraphLike → SetLike → Function1 → TraversableLike → AnyRef → Any
  191. def toTraversable: Traversable[GraphParam[N, E]]

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  192. def toVector: Vector[GraphParam[N, E]]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  193. def totalDegree(implicit nodeDegree: This.DegreeFunction, degreeFilter: (Int) ⇒ Boolean): Int

    Definition Classes
    GraphDegree
  194. def totalWeight: Long

    Definition Classes
    GraphBase
  195. def union(that: GenSet[GraphParam[N, E]]): This[N, E]

    Definition Classes
    SetLike → GenSetLike
  196. def view(from: Int, until: Int): IterableView[GraphParam[N, E], This[N, E]]

    Definition Classes
    IterableLike → TraversableLike
  197. def view: IterableView[GraphParam[N, E], This[N, E]]

    Definition Classes
    IterableLike → TraversableLike
  198. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  199. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  200. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  201. def withFilter(p: (GraphParam[N, E]) ⇒ Boolean): FilterMonadic[GraphParam[N, E], This[N, E]]

    Definition Classes
    TraversableLike → FilterMonadic
  202. final def withoutChecks[R](exec: ⇒ R): R

    Attributes
    protected
  203. def zip[A1 >: GraphParam[N, E], B, That](that: GenIterable[B])(implicit bf: CanBuildFrom[This[N, E], (A1, B), That]): That

    Definition Classes
    IterableLike → GenIterableLike
  204. def zipAll[B, A1 >: GraphParam[N, E], That](that: GenIterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[This[N, E], (A1, B), That]): That

    Definition Classes
    IterableLike → GenIterableLike
  205. def zipWithIndex[A1 >: GraphParam[N, E], That](implicit bf: CanBuildFrom[This[N, E], (A1, Int), That]): That

    Definition Classes
    IterableLike → GenIterableLike
  206. def |(that: GenSet[GraphParam[N, E]]): This[N, E]

    Definition Classes
    GenSetLike

Deprecated Value Members

  1. def /:\[A1 >: GraphParam[N, E]](z: A1)(op: (A1, A1) ⇒ A1): A1

    Definition Classes
    GenTraversableOnce
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) use fold instead

Inherited from Constrained[N, E]

Inherited from ConstraintHandlerMethods[N, E]

Inherited from ConstraintMethods[N, E]

Inherited from collection.GraphLike[N, E, This]

Inherited from GraphDegree[N, E]

Inherited from GraphTraversal[N, E]

Inherited from GraphBase[N, E]

Inherited from Serializable

Inherited from Serializable

Inherited from SetLike[GraphParam[N, E], This[N, E]]

Inherited from Subtractable[GraphParam[N, E], This[N, E]]

Inherited from GenSetLike[GraphParam[N, E], This[N, E]]

Inherited from (GraphParam[N, E]) ⇒ Boolean

Inherited from IterableLike[GraphParam[N, E], This[N, E]]

Inherited from GenIterableLike[GraphParam[N, E], This[N, E]]

Inherited from TraversableLike[GraphParam[N, E], This[N, E]]

Inherited from GenTraversableLike[GraphParam[N, E], This[N, E]]

Inherited from Parallelizable[GraphParam[N, E], ParSet[GraphParam[N, E]]]

Inherited from TraversableOnce[GraphParam[N, E]]

Inherited from GenTraversableOnce[GraphParam[N, E]]

Inherited from FilterMonadic[GraphParam[N, E], This[N, E]]

Inherited from HasNewBuilder[GraphParam[N, E], This[N, E]]

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped