trait InnerNode extends InnerNodeParam[N] with Node with InnerElem
- Alphabetic
- By Inheritance
- InnerNode
- InnerElem
- Node
- Serializable
- InnerNodeParam
- NodeParam
- OutParam
- Param
- AnyRef
- Any
- by EdgeAssoc
- by anyToNode
- by ChainingOps
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def addDiPredecessors(edge: EdgeT, add: (NodeT) => Unit): Unit
- Attributes
- protected[collection]
- abstract def addDiSuccessors(edge: EdgeT, add: (NodeT) => Unit): Unit
- Attributes
- protected[collection]
- abstract def addNeighbors(edge: EdgeT, add: (NodeT) => Unit): Unit
- Attributes
- protected[collection]
- abstract def connectionsWith(other: NodeT): Set[EdgeT] with FilterableSet[EdgeT]
All edges connecting this node with
other
including outgoing and incoming edges.All edges connecting this node with
other
including outgoing and incoming edges. This method is useful in case of multigraphs.- other
A node which is possibly connected with this node.
- returns
All edges connecting this node with
other
. Ifother
equals this node all hooks are returned. Ifother
is not connected with this node an empty set is returned.
- abstract def degree: Int
The degree of this node.
The degree of this node.
- returns
the number of edges that connect to this node. An edge that connects to this node at more than one ends (loop) is counted as much times as it is connected to this node.
- abstract def diPredecessors: Set[NodeT]
All direct predecessors of this node, also called predecessor set or open in-neighborhood: source nodes of directed incident edges and / or adjacent nodes of undirected incident edges excluding this node.
All direct predecessors of this node, also called predecessor set or open in-neighborhood: source nodes of directed incident edges and / or adjacent nodes of undirected incident edges excluding this node.
- returns
set of all direct predecessors of this node.
- abstract def diSuccessors: Set[NodeT]
All direct successors of this node, also called successor set or open out-neighborhood: target nodes of directed incident edges and / or adjacent nodes of undirected incident edges excluding this node.
All direct successors of this node, also called successor set or open out-neighborhood: target nodes of directed incident edges and / or adjacent nodes of undirected incident edges excluding this node.
- returns
set of all direct successors of this node.
- abstract def edges: ExtSet[EdgeT]
All edges at this node - commonly denoted as E(v).
All edges at this node - commonly denoted as E(v).
- returns
all edges connecting to this node.
- abstract def findIncomingFrom(from: NodeT): Option[EdgeT]
An edge at
from
having this node as a successor.An edge at
from
having this node as a successor.- from
The node being at an edge which has this node as a successor.
- returns
An edges at
from
having this node as a successor. Iffrom
equals this node a hook may be returned. Iffrom
is not an adjacent nodeNone
is returned.
- abstract def findOutgoingTo(to: NodeT): Option[EdgeT]
An outgoing edge connecting this node with
to
.An outgoing edge connecting this node with
to
.- to
The node which is the end point of an edge starting at this node.
- returns
One of possibly several edges connecting this node with
to
. Ifto
equals this node a hook may be returned. Ifto
is not an adjacent nodeNone
is returned.
- abstract def hasOnlyHooks: Boolean
Checks whether this node has only hooks or no edges at all.
Checks whether this node has only hooks or no edges at all.
- returns
true
if this node has only hooks or it isolated.
- abstract def hasPredecessors: Boolean
Whether this node has any predecessors.
- abstract def hasSuccessors: Boolean
Whether this node has any successors.
- abstract def hook: Option[EdgeT]
- returns
A looping edge out of one or more at this node or
None
if this node has no looping edge.
- abstract def inDegree(nodeFilter: NodeFilter, edgeFilter: EdgeFilter = anyEdge, includeHooks: Boolean = false, ignoreMultiEdges: Boolean = true): Int
The incoming degree of this node after applying some filters to the incoming edges and predecessors.
- abstract def inDegree: Int
The incoming degree of this node.
The incoming degree of this node.
- returns
the number of edges that come in to this node including undirected edges. Loops count once each.
- abstract def incoming: Set[EdgeT] with FilterableSet[EdgeT]
Incoming edges of this node.
Incoming edges of this node.
- returns
set of all edges incoming to of this including undirected edges.
- abstract def incomingFrom(from: NodeT): Set[EdgeT] with FilterableSet[EdgeT]
All incoming edges connecting
from
with this node.All incoming edges connecting
from
with this node.- from
The node with zero, one or more edges having this node as a direct successor.
- returns
All edges at
from
having this node as a direct successor. Iffrom
equals this node all hooks are returned. Iffrom
is not an adjacent node an empty set is returned.
- abstract def isContaining[N, E[+X] <: EdgeLikeIn[X]](g: GraphBase[N, E]): Boolean
- Definition Classes
- InnerNodeParam
- abstract def isDirectPredecessorOf(that: NodeT): Boolean
Whether
that
is an adjacent (direct successor) to this node.Whether
that
is an adjacent (direct successor) to this node.- that
The node to check for adjacency.
- returns
true
ifthat
is adjacent to this node.
- abstract def isIndependentOf(that: NodeT): Boolean
Whether
that
is independent of this node meaning that there exists no edge connecting this node withthat
.Whether
that
is independent of this node meaning that there exists no edge connecting this node withthat
.- that
The node to check for independency.
- returns
true
ifthat
node is independent of this node.
- abstract def neighbors: Set[NodeT]
All adjacent nodes (direct successors and predecessors) of this node, also called open neighborhood excluding this node.
All adjacent nodes (direct successors and predecessors) of this node, also called open neighborhood excluding this node.
- returns
set of all neighbors.
- abstract def outDegree(nodeFilter: NodeFilter, edgeFilter: EdgeFilter = anyEdge, includeHooks: Boolean = false, ignoreMultiEdges: Boolean = true): Int
The outgoing degree of this node after applying some filters to the outgoing edges and successors.
- abstract def outDegree: Int
The outgoing degree of this node.
The outgoing degree of this node.
- returns
the number of edges that go out from this node including undirected edges. Loops count once each.
- abstract def outgoing: Set[EdgeT] with FilterableSet[EdgeT]
All edges outgoing from this node.
All edges outgoing from this node.
- returns
set of all edges outgoing from this node including undirected edges and hooks.
- abstract def outgoingTo(to: NodeT): Set[EdgeT] with FilterableSet[EdgeT]
All outgoing edges connecting this node with
to
.All outgoing edges connecting this node with
to
.- to
The node which is the end point of zero, one or more edges starting at this node.
- returns
All edges connecting this node with
to
. Ifto
equals this node all hooks are returned. Ifto
is not an adjacent an empty set is returned.
- abstract def value: N
The outer node as supplied at instantiation time or while adding nodes this graph.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (InnerNode, B)
- final def <~(from: NodeT): Set[EdgeT] with FilterableSet[EdgeT]
Synonym for
incomingFrom
.Synonym for
incomingFrom
.- Annotations
- @inline()
- final def <~: Set[EdgeT] with FilterableSet[EdgeT]
Synonym for
incoming
.Synonym for
incoming
.- Annotations
- @inline()
- final def <~?(from: NodeT): Option[EdgeT]
Synonym for
findIncomingFrom
.Synonym for
findIncomingFrom
.- Annotations
- @inline()
- final def <~|: Set[NodeT]
Synonym for
diPredecessors
.Synonym for
diPredecessors
.- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final def asNodeT[N <: N, E[+X] <: EdgeLikeIn[X], G <: GraphBase[N, E]](g: G): GraphPredef.InnerNodeParam.asNodeT.G.NodeT
- Attributes
- protected[collection]
- Definition Classes
- InnerNodeParam
- final def asNodeTProjection[N <: N, E[+X] <: EdgeLikeIn[X]]: NodeT
- Attributes
- protected[collection]
- Definition Classes
- InnerNodeParam
- def canEqual(that: Any): Boolean
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def ensuring(cond: (InnerNode) => Boolean, msg: => Any): InnerNode
- def ensuring(cond: (InnerNode) => Boolean): InnerNode
- def ensuring(cond: Boolean, msg: => Any): InnerNode
- def ensuring(cond: Boolean): InnerNode
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(other: Any): Boolean
- Definition Classes
- InnerNode → AnyRef → Any
- final def fold[N <: N, E[+X] <: EdgeLikeIn[X], G <: GraphBase[N, E], T](g: G)(fa: (GraphPredef.InnerNodeParam.fold.G.NodeT) => T, fb: (NodeT) => T): T
- Definition Classes
- InnerNodeParam
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- InnerNode → AnyRef → Any
- final def inNeighbors: Set[NodeT]
Synonym for
diPredecessors
.Synonym for
diPredecessors
.- Annotations
- @inline()
- def isDefined: Boolean
- Definition Classes
- Param
- final def isEdge: Boolean
- Definition Classes
- Param
- def isIn: Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def isIsolated: Boolean
true
if this node's degree equals to 0.true
if this node's degree equals to 0.- Annotations
- @inline()
- final def isLeaf: Boolean
true
if this node's degree equals to 1.true
if this node's degree equals to 1.- Annotations
- @inline()
- def isNode: Boolean
- Definition Classes
- NodeParam
- final def isOut: Boolean
- Definition Classes
- Param
- val n1: InnerNode
- Implicit
- This member is added by an implicit conversion from InnerNode toEdgeAssoc[InnerNode] performed by method EdgeAssoc in scalax.collection.GraphPredef.
- Definition Classes
- EdgeAssoc
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def outNeighbors: Set[NodeT]
Synonym for
diSuccessors
.Synonym for
diSuccessors
.- Annotations
- @inline()
- def pipe[B](f: (InnerNode) => B): B
- Implicit
- This member is added by an implicit conversion from InnerNode toChainingOps[InnerNode] performed by method ChainingOps in scalax.collection.
- Definition Classes
- ChainingOps
- def productElementNames: Iterator[String]
- Implicit
- This member is added by an implicit conversion from InnerNode toOuterNode[InnerNode] performed by method anyToNode in scalax.collection.GraphPredef.
- Definition Classes
- Product
- val self: InnerNode
- Implicit
- This member is added by an implicit conversion from InnerNode toChainingOps[InnerNode] performed by method ChainingOps in scalax.collection.
- Definition Classes
- ChainingOps
- def stringPrefix: String
- Definition Classes
- NodeParam
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def tap[U](f: (InnerNode) => U): InnerNode
- Implicit
- This member is added by an implicit conversion from InnerNode toChainingOps[InnerNode] performed by method ChainingOps in scalax.collection.
- Definition Classes
- ChainingOps
- final def toNodeT[N <: N, E[+X] <: EdgeLikeIn[X], G <: GraphBase[N, E]](g: G)(f: (NodeT) => GraphPredef.InnerNodeParam.toNodeT.G.NodeT): GraphPredef.InnerNodeParam.toNodeT.G.NodeT
- Definition Classes
- InnerNodeParam
- final def toOuter: N
Synonym for
value
.Synonym for
value
.- Annotations
- @inline()
- def toString(): String
- Definition Classes
- NodeParam → AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def ~: ExtSet[EdgeT]
Synonym for
edges
.Synonym for
edges
.- Annotations
- @inline()
- final def ~>(to: NodeT): Set[EdgeT] with FilterableSet[EdgeT]
Synonym for
outgoingTo
.Synonym for
outgoingTo
.- Annotations
- @inline()
- final def ~>: Set[EdgeT] with FilterableSet[EdgeT]
Synonym for
outgoing
.Synonym for
outgoing
.- Annotations
- @inline()
- final def ~>?(to: NodeT): Option[EdgeT]
Synonym for
findOutgoingTo
.Synonym for
findOutgoingTo
.- Annotations
- @inline()
- final def ~>|: Set[NodeT]
Synonym for
diSuccessors
.Synonym for
diSuccessors
.- Annotations
- @inline()
- final def ~|: Set[NodeT]
Synonym for
neighbors
.Synonym for
neighbors
.- Annotations
- @inline()
Shadowed Implicit Value Members
- def isDefined: Boolean
- Implicit
- This member is added by an implicit conversion from InnerNode toOuterNode[InnerNode] performed by method anyToNode in scalax.collection.GraphPredef.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(innerNode: OuterNode[InnerNode]).isDefined
- Definition Classes
- Param
- final def isEdge: Boolean
- Implicit
- This member is added by an implicit conversion from InnerNode toOuterNode[InnerNode] performed by method anyToNode in scalax.collection.GraphPredef.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(innerNode: OuterNode[InnerNode]).isEdge
- Definition Classes
- Param
- def isIn: Boolean
- Implicit
- This member is added by an implicit conversion from InnerNode toOuterNode[InnerNode] performed by method anyToNode in scalax.collection.GraphPredef.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(innerNode: OuterNode[InnerNode]).isIn
- Definition Classes
- InParam → Param
- def isNode: Boolean
- Implicit
- This member is added by an implicit conversion from InnerNode toOuterNode[InnerNode] performed by method anyToNode in scalax.collection.GraphPredef.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(innerNode: OuterNode[InnerNode]).isNode
- Definition Classes
- NodeParam
- final def isOut: Boolean
- Implicit
- This member is added by an implicit conversion from InnerNode toOuterNode[InnerNode] performed by method anyToNode in scalax.collection.GraphPredef.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(innerNode: OuterNode[InnerNode]).isOut
- Definition Classes
- Param
- def stringPrefix: String
- Implicit
- This member is added by an implicit conversion from InnerNode toOuterNode[InnerNode] performed by method anyToNode in scalax.collection.GraphPredef.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(innerNode: OuterNode[InnerNode]).stringPrefix
- Definition Classes
- NodeParam
- def toString(): String
- Implicit
- This member is added by an implicit conversion from InnerNode toOuterNode[InnerNode] performed by method anyToNode in scalax.collection.GraphPredef.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(innerNode: OuterNode[InnerNode]).toString()
- Definition Classes
- NodeParam → AnyRef → Any
- val value: InnerNode
- Implicit
- This member is added by an implicit conversion from InnerNode toOuterNode[InnerNode] performed by method anyToNode in scalax.collection.GraphPredef.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(innerNode: OuterNode[InnerNode]).value
- Definition Classes
- OuterNode → NodeParam
- def ~[N >: N1](n2: N): UnDiEdge[N]
- Implicit
- This member is added by an implicit conversion from InnerNode toEdgeAssoc[InnerNode] performed by method EdgeAssoc in scalax.collection.GraphPredef.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(innerNode: EdgeAssoc[InnerNode]).~(n2)
- Definition Classes
- EdgeAssoc
- Annotations
- @inline()
- def ~>[N >: N1](n2: N): DiEdge[N]
- Implicit
- This member is added by an implicit conversion from InnerNode toEdgeAssoc[InnerNode] performed by method EdgeAssoc in scalax.collection.GraphPredef.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(innerNode: EdgeAssoc[InnerNode]).~>(n2)
- Definition Classes
- EdgeAssoc
- Annotations
- @inline()
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from InnerNode toStringFormat[InnerNode] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def →[B](y: B): (InnerNode, B)
- Implicit
- This member is added by an implicit conversion from InnerNode toArrowAssoc[InnerNode] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.
Welcome to the Graph for Scala API reference. Some suggested navigation entry points:
Graph
mutable.Graph
and its inner nodes.GraphEdge
objectedge
packageGraphPredef
object andImplicits
object.GraphTraversal
andTraverserInnerNode
.RandomGraph
.GraphGen
.