scalax.collection

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 SetLike[GraphParam[N, E], This[N, E]] with GraphTraversal[N, E] with GraphBase[N, E] with GraphDegree[N, E]

A template trait for graphs.

This trait provides the common structure and operations of immutable graphs independently of their 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
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
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. GraphLike
  2. GraphDegree
  3. GraphTraversal
  4. GraphBase
  5. Serializable
  6. Serializable
  7. SetLike
  8. Subtractable
  9. GenSetLike
  10. Function1
  11. IterableLike
  12. GenIterableLike
  13. TraversableLike
  14. GenTraversableLike
  15. Parallelizable
  16. TraversableOnce
  17. GenTraversableOnce
  18. FilterMonadic
  19. HasNewBuilder
  20. Equals
  21. AnyRef
  22. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. abstract type Config <: GraphConfig

    Attributes
    protected
  2. trait Cycle extends Path

    Represents a cycle in this graph listing the nodes and connecting edges on it with the following syntax:

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

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

    Type alias for entries in degree maps returned by degreeSeqMap.

    Type alias for entries in degree maps returned by degreeSeqMap.

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

    Decreasing ordering of nodes with respect to their degree.

  6. trait Edge extends Serializable

    Definition Classes
    GraphBase
  7. class EdgeBase extends InnerEdge with InnerEdgeLike

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

    Definition Classes
    GraphBase
  9. trait EdgeSet extends This.EdgeSet

    Definition Classes
    GraphLikeGraphBase
  10. abstract type EdgeSetT <: This.EdgeSet

    Definition Classes
    GraphLikeGraphBase
  11. abstract type EdgeT <: This.InnerEdge with This.InnerEdgeLike with Serializable

    Definition Classes
    GraphBase
  12. sealed trait ElemOrdering extends AnyRef

    Base trait for graph Orderings.

  13. trait ExtendedNodeVisitor extends (NodeT) ⇒ VisitorReturn with (NodeT, Int, Int, ⇒ NodeInformer) ⇒ VisitorReturn

    Template for extended node visitors.

  14. trait Filter[T] extends (T) ⇒ Boolean

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

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

    Definition Classes
    GraphBase
  17. trait InnerNodeLike extends This.InnerNodeLike

    Definition Classes
    GraphLikeGraphTraversalGraphBase
  18. sealed class NoOrdering extends ElemOrdering

    The empty ElemOrdering.

  19. trait Node extends Serializable

    Definition Classes
    GraphBase
  20. abstract class NodeBase extends This.NodeBase with NodeOut[N] with This.InnerNodeLike

    Attributes
    protected
    Definition Classes
    GraphLikeGraphBase
  21. sealed trait NodeOrdering extends Ordering[NodeT] with ElemOrdering

    Ordering for the path dependent type NodeT.

  22. trait NodeSet extends This.NodeSet

    Definition Classes
    GraphLikeGraphBase
  23. abstract type NodeSetT <: This.NodeSet

    Definition Classes
    GraphLikeGraphBase
  24. abstract type NodeT <: This.InnerNodeLike

    Definition Classes
    GraphLikeGraphTraversalGraphBase
  25. trait Path extends Iterable[GraphParamOut[N, E]]

    Represents a path in this graph listing the nodes and connecting edges on it with the following syntax:

  26. type Self = This[N, E]

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

    Attributes
    protected
  28. abstract class Traversal extends AnyRef

    Abstract class for functional traversals.

  29. class WithFilter extends FilterMonadic[A, Repr]

    Definition Classes
    TraversableLike

Abstract Value Members

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

    Creates a new supergraph with an additional node, unless the node passed is already present.

    Creates a new supergraph with an additional node, unless the node passed is already present.

    node

    the node to be added

    returns

    the new supergraph containing all nodes and edges of this graph and node additionally.

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

    Creates a new supergraph with an additional edge, unless the edge passed is already present.

    Creates a new supergraph with an additional edge, unless the edge passed is already present.

    edge

    the edge to be added

    returns

    the new supergraph containing all nodes and edges of this graph plus edge.

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

    Creates a new subgraph consisting of all nodes and edges of this graph except node and those edges which node is incident with.

    Creates a new subgraph consisting of all nodes and edges of this graph except node and those edges which node is incident with.

    node

    the node to be removed.

    returns

    the new subgraph of this graph after the "ripple" deletion of node.

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

    Creates a new subgraph consisting of all nodes and edges of this graph except edge and those nodes which are incident with edge and would become edge-less after deletion.

    Creates a new subgraph consisting of all nodes and edges of this graph except edge and those nodes which are incident with edge and would become edge-less after deletion.

    edge

    the edge to be removed.

    returns

    a new subgraph of this graph after the "ripple" deletion of edge from this graph.

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

    Creates a new subgraph consisting of all nodes and edges of this graph but edge.

    Creates a new subgraph consisting of all nodes and edges of this graph but edge. The node set remains unchanged.

    edge

    the edge to be removed.

    returns

    a new subgraph of this graph that contains all nodes and edges of this graph except of edge.

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

    Creates a new subgraph consisting of all nodes and edges of this graph but node which is conditionally removed from this graph.

    Creates a new subgraph consisting of all nodes and edges of this graph but node which is conditionally removed from this graph. The removal only succeeds if the node is not incident with any edges or it is only incident with hooks.

    node

    the node to be gently removed.

    returns

    the new subgraph of this graph after the "gentle" deletion of node. If node could not be deleted, the new graph is a copy of this graph.

  7. implicit abstract def config: generic.GraphCompanion.Config with This.Config

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

  9. abstract def edges: This.EdgeSetT

    The edge set of this Graph commonly referred to as E(G).

    The edge set of this Graph commonly referred to as E(G).

    returns

    Set of all contained edges.

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

    Definition Classes
    SetLike
  11. abstract def findCycle(nodeFilter: (This.NodeT) ⇒ Boolean = anyNode, edgeFilter: (This.EdgeT) ⇒ Boolean = anyEdge, maxDepth: Int = 0, nodeVisitor: (This.NodeT) ⇒ VisitorReturn = noNodeAction, edgeVisitor: (This.EdgeT) ⇒ Unit = noEdgeAction, ordering: This.ElemOrdering = noOrdering): Option[This.Cycle]

    Finds a cycle in this graph taking optional filters and visitors into account.

    Finds a cycle in this graph taking optional filters and visitors into account., if any.

    nodeFilter

    Predicate to filter the nodes to be visited during traversal. The default value is anyNode, that is no filtering. A return of true signals that the traversal is to be canceled.

    edgeFilter

    Predicate to filter the edges to be visited during traversal. The default value is anyEdge meaning that no filtering takes place.

    maxDepth

    A positive value limits the number of layers for BFS respectively the number of consecutive child visits before siblings are visited for DFS. 0 - the default - indicates that the traversal should have an unlimited depth meaning that it will be continued either until it's canceled by nodeVisitor or until all nodes have been visited.

    nodeVisitor

    Function to be called on visiting a node for the first time during a traversal. It can mutate the node or carry out any other side effect. The default value is the empty function noNodeAction. Alternatively, an instance of ExtendedNodeVisitor may be passed to obtain additional state information such as the current depth. The concrete type of the last argument, the informer depends on the underlying implementation so you need to match against it. Concerning this method please match against scalax.collection.GraphTraversalImpl.WgbInformer.

    edgeVisitor

    Function to be called on visiting an edge. It can mutate the node or carry out any other side effect. The default value is the empty function noEdgeAction.

    ordering

    If a NodeOrdering or EdgeOrdering different from noOrdering is supplied neighbor nodes will be sorted during the traversal. Thus it is guaranteed that the smaller an element's ranking the sooner it will be processed. In case of EdgeOrdering it is guaranteed that the smaller an edge's ranking the sooner its relevant end(s) will be processed.

    returns

    A cycle or None if either a) there exists no cycle in this graph or b) there exists a cycle in this graph but due to the given filtering conditions or a Cancel return by a visitor this cycle had to be disregarded.

    Definition Classes
    GraphTraversal
  12. abstract val graphCompanion: GraphCompanion[This]

    The companion object of This.

  13. abstract def newEdge(innerEdge: E[This.NodeT]): This.EdgeT

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

    Attributes
    protected
    Definition Classes
    GraphBase
  15. abstract def newTraversal(direction: Direction = Successors, nodeFilter: (This.NodeT) ⇒ Boolean = anyNode, edgeFilter: (This.EdgeT) ⇒ Boolean = anyEdge, nodeVisitor: (This.NodeT) ⇒ VisitorReturn = noNodeAction, edgeVisitor: (This.EdgeT) ⇒ Unit = noEdgeAction, ordering: This.ElemOrdering = noOrdering): This.Traversal

    Creates a Traversal instance allowing subsequent traversals with constant filters and visitors.

    Creates a Traversal instance allowing subsequent traversals with constant filters and visitors.

    direction

    Determines which connected nodes the traversal has to follow. The default value is Successors.

    nodeFilter

    Predicate to filter the nodes to be visited during traversal. The default value is anyNode, that is no filtering. A return of true signals that the traversal is to be canceled.

    edgeFilter

    Predicate to filter the edges to be visited during traversal. The default value is anyEdge meaning that no filtering takes place.

    nodeVisitor

    Function to be called on visiting a node for the first time during a traversal. It can mutate the node or carry out any other side effect. The default value is the empty function noNodeAction. Alternatively, an instance of ExtendedNodeVisitor may be passed to obtain additional state information such as the current depth. The concrete type of the last argument, the informer depends on the underlying implementation so you need to match against it. Concerning this method please match against scalax.collection.GraphTraversalImpl.DfsInformer or scalax.collection.GraphTraversalImpl.BfsInformer depending on the breadthFirst argument.

    edgeVisitor

    Function to be called on visiting an edge. It can mutate the node or carry out any other side effect. The default value is the empty function noEdgeAction.

    ordering

    If a NodeOrdering or EdgeOrdering different from noOrdering is supplied neighbor nodes will be sorted during the traversal. Thus it is guaranteed that the smaller an element's ranking the sooner it will be processed. In case of EdgeOrdering it is guaranteed that the smaller an edge's ranking the sooner its relevant end(s) will be processed.

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

    The node (vertex) set of this Graph commonly referred to as V(G).

    The node (vertex) set of this Graph commonly referred to as V(G).

    returns

    Set of all contained nodes.

    Definition Classes
    GraphBase
  17. 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]

    Creates a new supergraph with an additional node or edge, unless the node or edge passed is already present.

    Creates a new supergraph with an additional node or edge, unless the node or edge passed is already present.

    This method purely wraps +(node: N) respectively +(edge: E[N]) granting the same behavior.

    elem

    the wrapped node or edge to be added; ; if elem is of type N, the wrapped object is added to the node set otherwise to the edge set.

    returns

    a new supergraph containing all nodes and edges of this graph plus elem.

    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]]): This[N, E]

    Definition Classes
    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]

    Creates a new subgraph consisting of all nodes and edges of this graph except elem.

    Creates a new subgraph consisting of all nodes and edges of this graph except elem. If elem is of type N, this method maps to -(node: N). Otherwise the edge is deleted leaving the node set unchanged.

    elem

    node or edge to be removed.

    returns

    the new subgraph of this graph after the "ripple" deletion of the passed node or the simple deletion of the passed edge.

    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]

    Creates a new subgraph consisting of all nodes and edges of this graph except elem.

    Creates a new subgraph consisting of all nodes and edges of this graph except elem. If elem is of type N, this method maps to -(node: N). Otherwise the edge is deleted along with those incident nodes which would become edge-less after deletion.

    elem

    node or edge to be removed.

    returns

    a new subgraph of this graph after the "ripple" deletion of the passed node or edge.

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

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

    Creates a new subgraph consisting of all nodes and edges of this graph but the elements of coll which will be unconditionally removed.

    Creates a new subgraph consisting of all nodes and edges of this graph but the elements of coll which will be unconditionally removed. This operation differs from -- in that edges are deleted along with those incident nodes which would become isolated after deletion.

    returns

    the new subgraph containing all nodes and edges of this graph after the "ripple" deletion of nodes and the simple deletion of edges in coll .

  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 Degree extends (GraphDegree.this)#DegreeFunction

    Definition Classes
    GraphDegree
  22. object DegreeOrdering extends Serializable

    Definition Classes
    GraphDegree
  23. object Edge extends Serializable

    Definition Classes
    GraphBase
  24. object EdgeOrdering extends Serializable

    Ordering for the path dependent type EdgeT.

  25. object ExtendedNodeVisitor

    Definition Classes
    GraphTraversal
  26. object InDegree extends (GraphDegree.this)#DegreeFunction

    Definition Classes
    GraphDegree
  27. object IntReverseOrdering extends Ordering[Int]

    Decreasing ordering of integers.

  28. object Node extends Serializable

    Definition Classes
    GraphBase
  29. object NodeOrdering extends Serializable

    Definition Classes
    GraphBase
  30. object OutDegree extends (GraphDegree.this)#DegreeFunction

    Definition Classes
    GraphDegree
  31. def addString(b: StringBuilder): StringBuilder

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

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

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

    Definition Classes
    TraversableOnce → GenTraversableOnce
  35. def andThen[A](g: (Boolean) ⇒ A): (GraphParam[N, E]) ⇒ A

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

    Default edge filter letting path all edges (non-filter).

    Default edge filter letting path all edges (non-filter).

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

    Default node filter letting path all nodes (non-filter).

    Default node filter letting path all nodes (non-filter).

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

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

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

    Definition Classes
    Any
  41. def asSortedString(nodeSeparator: String = GraphBase.defaultSeparator, edgeSeparator: String = GraphBase.defaultSeparator, nodesEdgesSeparator: String = GraphBase.defaultSeparator, withNodesEdgesPrefix: Boolean = false)(implicit ordNode: This.NodeOrdering = defaultNodeOrdering, ordEdge: This.EdgeOrdering = defaultEdgeOrdering): String

    Sorts all nodes of this graph by ordNode followed by all edges sorted by ordEdge and concatinates their string representation nodeSeparator and edgeSeparator respectively.

    Sorts all nodes of this graph by ordNode followed by all edges sorted by ordEdge and concatinates their string representation nodeSeparator and edgeSeparator respectively.

    nodeSeparator

    to separate nodes by.

    edgeSeparator

    to separate edges by.

    nodesEdgesSeparator

    to separate nodes from edges by.

    withNodesEdgesPrefix

    whether the node and edge set should be prefixed.

    ordNode

    the node ordering defaulting to defaultNodeOrdering.

    ordEdge

    the edge ordering defaulting to defaultEdgeOrdering.

  42. final def bulkOp(elems: GenTraversableOnce[GraphParam[N, E]], isPlusPlus: Boolean): This[N, E]

    Prepares and calls plusPlus or minusMinus.

    Prepares and calls plusPlus or minusMinus.

    Attributes
    protected
  43. def canEqual(that: Any): Boolean

    Definition Classes
    IterableLike → Equals
  44. def clone(): AnyRef

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

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

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

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

    Checks whether a given node or edge is contained in this graph.

    Checks whether a given node or edge is contained in this graph.

    elem

    the node or edge the existence of which is to be checked

    returns

    true if elem is contained in this graph

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

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

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

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

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

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

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

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

    The degree set of this graph projected onto a map.

    The degree set of this graph projected onto a map. The keys of the map are the degrees in decreasing order while the values are the number of inner nodes having the degree of the corresponding key.

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

    The degree sequence of this graph projected onto a sequence of tuples.

    The degree sequence of this graph projected onto a sequence of tuples. The first elements of the tuples are the degrees in non-increasing order while the second elements are the corresponding inner nodes.

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

    The degree set of this graph projected onto a map.

    The degree set of this graph projected onto a map. The keys of the map are the degrees in decreasing order while the values are sets of the corresponding inner nodes.

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

    The degree sequence of this graph, that is the non-increasing sequence of degrees over all nodes.

    The degree sequence of this graph, that is the non-increasing sequence of degrees over all nodes.

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

    The degree set of this graph, that is the decreasing set of unique degrees over all nodes.

    The degree set of this graph, that is the decreasing set of unique degrees over all nodes. Same as degreeSeq without duplicates.

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

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

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

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

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

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

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

    Graph instances are equal if their nodes and edges turned to outer nodes and outer edges are equal.

    Graph instances are equal if their nodes and edges turned to outer nodes and outer edges are equal. Any TraversableOnce instance may also be equal to this graph if its set representation contains equalling outer nodes and outer edges. Thus the following expressions hold:

    Graph(1~2, 3) == List(1~2, 3)
    Graph(1~2, 3) == List(1, 2, 2, 3, 2~1)

    The first test is false because of the failing nodes 1 and 2. The second is true because of duplicate elimination and undirected edge equivalence.

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

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

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

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

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

    Searches for an edge node equaling to outerEdge in this graph.

    Searches for an edge node equaling to outerEdge in this graph.

    outerEdge

    the outer edge to search for in this graph.

    returns

    Some of the inner edge found or None.

    Annotations
    @inline()
  73. final def find(outerNode: N): Option[This.NodeT]

    Searches for an inner node equaling to outerNode in this graph.

    Searches for an inner node equaling to outerNode in this graph.

    returns

    Some of the inner node found or None.

    Annotations
    @inline()
  74. def find(p: (GraphParam[N, E]) ⇒ Boolean): Option[GraphParam[N, E]]

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

    Same as findCycle(...) with default arguments.

    Same as findCycle(...) with default arguments.

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

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

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

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

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

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

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

    Searches for an inner edge equaling to outerEdge in this graph which must exist in this graph.

    Searches for an inner edge equaling to outerEdge in this graph which must exist in this graph.

    outerEdge

    the outer edge to search for in this graph.

    returns

    the inner edge if found. Otherwise NoSuchElementException is thrown.

    Annotations
    @inline()
  83. final def get(outerNode: N): This.NodeT

    Searches for an inner node equaling to outerNode in this graph which must exist in this graph.

    Searches for an inner node equaling to outerNode in this graph which must exist in this graph.

    outerNode

    the outer node to search for in this graph.

    returns

    the inner node if found. Otherwise NoSuchElementException is thrown.

    Annotations
    @inline()
  84. final def getClass(): Class[_]

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

    Searches for an inner edge equaling to outerEdge in this graph.

    Searches for an inner edge equaling to outerEdge in this graph.

    outerEdge

    the outer edge to search for in this graph.

    default

    the inner edge to return if outerEdge cannot be found.

    returns

    the inner edge looked up or default if no inner edge equaling to edge could be found.

    Annotations
    @inline()
  86. final def getOrElse(outerNode: N, default: This.NodeT): This.NodeT

    Searches for an inner node equaling to outerNode in this graph.

    Searches for an inner node equaling to outerNode in this graph.

    outerNode

    the outer node to search for in this graph.

    default

    the inner node to return if outerNode is not contained.

    returns

    The inner node looked up or default if no inner node equaling to outerNode could be found.

    Annotations
    @inline()
  87. def graphSize: Int

    The size - commonly referred to as ||G|| - of this graph equaling to the number of edges.

    The size - commonly referred to as ||G|| - of this graph equaling to the number of edges.

    Method size is reserved for the number of nodes and edges because Graph is also SetLike with set elements being nodes or edges.

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

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

    Definition Classes
    IterableLike
  90. def hasDefiniteSize: Boolean

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

    Definition Classes
    GenSetLike → AnyRef → Any
  92. def having(node: (This.NodeT) ⇒ Boolean = _ => false, edge: (This.EdgeT) ⇒ Boolean = null): PartialFunction[GraphParam[N, E], Boolean]

    Provides a shortcut for predicates involving any graph element.

    Provides a shortcut for predicates involving any graph element. In order to compute a subgraph of this graph, the result of this method may be passed to any graph-level method requiring a predicate such as count, exists, filter, filterNot, forall etc. For instance

    val g = Graph(2~>3, 3~>1, 5)
    g filter g.having(nodes = _ >= 2) // yields Graph(2, 3, 5, 2~>3)
    node

    The predicate that must hold for the nodes.

    edge

    The predicate that must hold for the edges. If omitted, all edges between nodes to be included by nodes will also be included.

    returns

    A partial function combining the passed predicates.

  93. def head: GraphParam[N, E]

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

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

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

    Populates this graph with nodes and edges.

    Populates this graph with nodes and edges.

    The implementing class will typically have a constructor with the same parameters which is invoked by from of the companion object.

    nodes

    The isolated (and optionally any other) outer nodes that the node set of this graph is to be populated with.

    edges

    The outer edges that the edge set of this graph is to be populated with. Nodes being the end of any of these edges will be added to the node set.

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

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

    Definition Classes
    GenSetLike
  99. final def isAcyclic: Boolean

    Whether this graph has no cycle.

    Whether this graph has no cycle.

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

    Definition Classes
    GraphTraversal
  101. def isConnected: Boolean

    Whether this graph is connected if it is undirected or weakly connected if it is directed.

    Whether this graph is connected if it is undirected or weakly connected if it is directed.

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

    true if filter is not equivalent to anyEdge.

    true if filter is not equivalent to anyEdge.

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

    true if visitor is not equivalent to noEdgeAction.

    true if visitor is not equivalent to noEdgeAction.

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

    true if filter is not equivalent to anyNode.

    true if filter is not equivalent to anyNode.

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

    true if visitor is not equivalent to noNodeUpAction.

    true if visitor is not equivalent to noNodeUpAction.

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

    true if visitor is not equivalent to noNodeAction.

    true if visitor is not equivalent to noNodeAction.

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

    Whether this graph has at least one cycle.

    Whether this graph has at least one cycle.

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

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

    Definition Classes
    Any
  110. final def isTraversableAgain: Boolean

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

    true if this graph has at most 1 node.

    true if this graph has at most 1 node.

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

    Iterates over all nodes and all edges.

    Iterates over all nodes and all edges.

    returns

    iterator containing all nodes and all edges

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

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

    Definition Classes
    TraversableLike → GenTraversableLike
  115. 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.

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

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

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

    The degree of the node having the highest degree or 0 if this graph is empty.

    The degree of the node having the highest degree or 0 if this graph is empty.

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

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

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

    The degree of the node having the least degree or 0 if this graph is empty.

    The degree of the node having the least degree or 0 if this graph is empty.

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

    Implements the heart of -- calling the from factory method of the companion object.

    Implements the heart of -- calling the from factory method of the companion object. Note that this method must be reimplemented in each module having its own factory methods such as constrained does.

    Attributes
    protected
  123. def minusMinusNodesEdges(delNodes: Iterable[N], delEdges: Iterable[E[N]]): (Set[N], Set[E[N]])

    Calculates the nodes and edges arguments to be passed to a factory method when delNodes and delEdges are to be deleted by --.

    Calculates the nodes and edges arguments to be passed to a factory method when delNodes and delEdges are to be deleted by --.

    Attributes
    protected
  124. def mkString: String

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

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

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

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

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

    Default edge visitor doing nothing (non-visitor).

    Default edge visitor doing nothing (non-visitor).

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

    Node predicate always returning false.

    Node predicate always returning false.

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

    Default node visitor doing nothing (non-visitor).

    Default node visitor doing nothing (non-visitor).

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

    Default node-up visitor doing nothing (non-visitor).

    Default node-up visitor doing nothing (non-visitor).

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

    Definition Classes
    GraphBase
  134. def nonEmpty: Boolean

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

    true if this graph has at least 2 nodes.

    true if this graph has at least 2 nodes.

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

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

    Definition Classes
    AnyRef
  138. def order: Int

    The order - commonly referred to as |G| - of this graph equaling to the number of nodes.

    The order - commonly referred to as |G| - of this graph equaling to the number of nodes.

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

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

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

    Attributes
    protected
  142. def partition(p: (GraphParam[N, E]) ⇒ Boolean): (This[N, E], This[N, E])

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

    Implements the heart of ++ calling the from factory method of the companion object.

    Implements the heart of ++ calling the from factory method of the companion object. Note that this method must be reimplemented in each module having its own factory methods such as constrained does.

    Attributes
    protected
  144. def product[B >: GraphParam[N, E]](implicit num: Numeric[B]): B

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

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

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

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

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

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

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

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

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

    Definition Classes
    IterableLike → GenIterableLike
  154. 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
  155. 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
  156. 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.

  157. def size: Int

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

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

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

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

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

    Definition Classes
    TraversableLike → GenTraversableLike
  163. def stringPrefix: String

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    TraversableOnce → GenTraversableOnce
  186. def toSortedString(nodeSeparator: String = GraphBase.defaultSeparator, edgeSeparator: String = GraphBase.defaultSeparator, nodesEdgesSeparator: String = GraphBase.defaultSeparator, withNodesEdgesPrefix: Boolean = false)(implicit ordNode: This.NodeOrdering = defaultNodeOrdering, ordEdge: This.EdgeOrdering = defaultEdgeOrdering): String

    Same as asSortedString but additionally prefixed and parenthesized by stringPrefix.

  187. def toStream: Stream[GraphParam[N, E]]

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

    Ensures sorted nodes/edges unless this Graph has more than 100 elements.

    Ensures sorted nodes/edges unless this Graph has more than 100 elements. See also asSortedString and toSortedString.

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

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

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

    The total degree of this graph equaling to the sum of the degrees over all nodes or 0 if this graph is empty.

    The total degree of this graph equaling to the sum of the degrees over all nodes or 0 if this graph is empty.

    nodeDegree

    the degree function to apply to the nodes defaulting to Degree. Non-default predefined degree functions are InDegree and OutDegree.

    degreeFilter

    selects nodes to be included by their degree.

    Definition Classes
    GraphDegree
  192. def totalWeight: Long

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

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

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

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

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

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

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

    Definition Classes
    TraversableLike → FilterMonadic
  200. 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
  201. 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
  202. def zipWithIndex[A1 >: GraphParam[N, E], That](implicit bf: CanBuildFrom[This[N, E], (A1, Int), That]): That

    Definition Classes
    IterableLike → GenIterableLike
  203. 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 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