Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait GraphInnerEdgetrait BaseInnerEdgetrait InnerEdgetrait InnerElemclass DiEdge[NodeT]trait AnyDiHyperEdge[NodeT]trait AnyHyperEdge[NodeT]trait Equalsclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Inherited methods
All connecting edges, that is all edges with ends incident with this edge including possible loops.
All connecting edges, that is all edges with ends incident with this edge including possible loops.
Attributes
- Inherited from:
- BaseInnerEdge
Number of the endpoints of this edge. At least two nodes are joined. In case of a hook, the two nodes are identical. Hyperedges may link more than two nodes.
Attributes
- Definition Classes
-
EqDi -> Eq
- Inherited from:
- EqDi (hidden)
Attributes
- Definition Classes
-
EqDi -> Eq
- Inherited from:
- EqDi (hidden)
Attributes
- Definition Classes
- Inherited from:
- BaseInnerEdge
The Graph
instance that contains this
inner edge.
Same as isAt
.
Attributes
- Inherited from:
- EqDi (hidden)
The endpoints of this edge, in other words the nodes this edge connects.
The endpoints of this edge, in other words the nodes this edge connects.
Attributes
- Definition Classes
- Inherited from:
- AnyDiEdge
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Any implementation of this method should be an equivalence relation:
- It is reflexive: for any instance
x
of typeAny
,x.equals(x)
should returntrue
. - It is symmetric: for any instances
x
andy
of typeAny
,x.equals(y)
should returntrue
if and only ify.equals(x)
returnstrue
. - It is transitive: for any instances
x
,y
, andz
of typeAny
ifx.equals(y)
returnstrue
andy.equals(z)
returnstrue
, thenx.equals(z)
should returntrue
.
If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is usually necessary to override hashCode
to ensure that objects which are "equal" (o1.equals(o2)
returns true
) hash to the same scala.Int. (o1.hashCode.equals(o2.hashCode)
).
Value parameters
- that
-
the object to compare against this object for equality.
Attributes
- Returns
-
true
if the receiver object is equivalent to the argument;false
otherwise. - Definition Classes
- Inherited from:
- BaseInnerEdge
true
if any source end of this edge fulfills pred
.
true
if any source end of this edge fulfills pred
.
Attributes
- Definition Classes
- Inherited from:
- AnyDiEdge
true
if node
is a source of this edge. In case this edge is undirected this method maps to isAt
.
true
if node
is a source of this edge. In case this edge is undirected this method maps to isAt
.
Attributes
- Definition Classes
- Inherited from:
- AnyDiEdge
true
if any target end of this edge fulfills pred
.
true
if any target end of this edge fulfills pred
.
Attributes
- Definition Classes
- Inherited from:
- AnyDiEdge
true
if node
is a target of this edge. In case this edge is undirected this method maps to isAt
.
true
if node
is a target of this edge. In case this edge is undirected this method maps to isAt
.
Attributes
- Definition Classes
- Inherited from:
- AnyDiEdge
Calculate a hash code value for the object.
Calculate a hash code value for the object.
The default hashing algorithm is platform dependent.
Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)
) yet not be equal (o1.equals(o2)
returns false
). A degenerate implementation could always return 0
. However, it is required that if two objects are equal (o1.equals(o2)
returns true
) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)
). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals
method.
Attributes
- Returns
-
the hash code value for this object.
- Definition Classes
-
BaseInnerEdge -> Any
- Inherited from:
- BaseInnerEdge
Whether this edge is directed.
Whether this edge produces a self-loop. In case of a non-hyperedge, a loop is given if the incident nodes are equal. In case of a directed hyperedge, a loop is given if any of the targets is included in the sources. In case of an undirected hyperedge, a loop is given if any of the ends is a duplicate.
Whether this edge produces a self-loop. In case of a non-hyperedge, a loop is given if the incident nodes are equal. In case of a directed hyperedge, a loop is given if any of the targets is included in the sources. In case of an undirected hyperedge, a loop is given if any of the ends is a duplicate.
Attributes
- Definition Classes
- Inherited from:
- AnyDiEdge
Whether this edge is undirected.
true
if
a) two distinct ends of this undirected edge exist for which p1
and p2
hold or
b) p1
holds for a source and p2
for a target of this directed edge.
true
if
a) two distinct ends of this undirected edge exist for which p1
and p2
hold or
b) p1
holds for a source and p2
for a target of this directed edge.
Attributes
- Definition Classes
- Inherited from:
- AnyDiEdge
true
if a. being an undirected edge, both n1
and n2
are at this edge a. being a directed edge, n1
is a source and n2
a target of this edge.
true
if a. being an undirected edge, both n1
and n2
are at this edge a. being a directed edge, n1
is a source and n2
a target of this edge.
Attributes
- Definition Classes
- Inherited from:
- AnyDiEdge
The n'th node of this edge.
The n'th node of this edge.
Attributes
- Throws
-
IllegalArgumentException
if
n
does not meet0 <= n < arity
. - Definition Classes
- Inherited from:
- AnyEdge
The first node of this edge.
The second node of this edge.
Whether this edge has exactly two ends.
Same as ! looping
.
The nodes of this edge which only participate in this edge.
The nodes of this edge which only participate in this edge.
Attributes
- Inherited from:
- BaseInnerEdge
All source ends of this edge.
All target ends of this edge.
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
BaseInnerEdge -> Any
- Inherited from:
- BaseInnerEdge
The weight of this edge with a default of 1.
The weight of this edge with a default of 1.
Note that weight
is normally not part of the edge key (hashCode). As a result, edges with different weights connecting the same nodes will be evaluated as equal and thus added once and only once to the graph. In case you need multi-edges based on different weights you should define a custom edge class that mixes in ExtendedKey
and adds weight
to keyAttributes
.
Attributes
- Definition Classes
- Inherited from:
- BaseInnerEdge
Applies f
to all source ends of this edge without any memory allocation.
Applies f
to all source ends of this edge without any memory allocation.
Attributes
- Definition Classes
- Inherited from:
- AnyDiEdge
Applies f
to the target ends of this edge without any memory allocation.
Applies f
to the target ends of this edge without any memory allocation.
Attributes
- Definition Classes
- Inherited from:
- AnyDiEdge