GraphLikeNodeSet
Attributes
- Graph
-
- Supertypes
-
trait GraphNodeSettrait NodeSettrait ExtSetMethods[NodeT]trait FilterableSet[NodeT]trait Shrinkable[NodeT]trait Clearabletrait Cloneabletrait Equalstrait IterableOnce[NodeT]class Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class AdjacencyListNodeSet
Members list
Value members
Abstract methods
removes all incident edges of node
from the edge set leaving the node set unchanged.
removes all incident edges of node
from the edge set leaving the node set unchanged.
Value parameters
- node
-
the node the incident edges of which are to be removed from the edge set.
Attributes
Inherited methods
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- SetOps
Attributes
- Definition Classes
- Inherited from:
- GraphNodeSet
Attributes
- Inherited from:
- Shrinkable
Attributes
- Inherited from:
- Shrinkable
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- NodeSet
Attributes
- Definition Classes
-
NodeSetToString -> Iterable
- Inherited from:
- NodeSetToString (hidden)
Create a copy of the receiver object.
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- SetOps
Attributes
- Inherited from:
- GraphNodeSet
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Returns a random element of the set if it is nonEmpty
otherwise throws IllegalArgumentException
. Note that currently a near- but no true-uniform distribution is granted to allow for O(1) implementation.
Returns a random element of the set if it is nonEmpty
otherwise throws IllegalArgumentException
. Note that currently a near- but no true-uniform distribution is granted to allow for O(1) implementation.
Value parameters
- random
-
a random generator; it is essential that
random
be instantiated by the caller just once for any sequence of calls
Attributes
- Inherited from:
- NodeSet
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- Inherited from:
- IterableFactoryDefaults
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:
- Set
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Finds the inner node corresponding to outerNode
.
Finds the inner node corresponding to outerNode
.
Attributes
- Returns
-
the inner node wrapped by
Some
if found, otherwise None. - Inherited from:
- NodeSet
Finds an entry in the collection based on toMatch
's hashCode
and a correspondence function but not on the argument type.
Finds an entry in the collection based on toMatch
's hashCode
and a correspondence function but not on the argument type.
Value parameters
- correspond
-
function returning whether a given entry corresponds to
other
- toMatch
-
a value not necessarily of type
A
; the entry to be searched for must have the samehashCode
and be equal to this argument
Attributes
- Returns
-
the entry corresponding to
toMatch
or null if not contained - Inherited from:
- ExtSetMethods
Attributes
- Inherited from:
- ExtSetMethods
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Same as foldLeft
except the second parameter of opNode
.
Same as foldLeft
except the second parameter of opNode
.
Value parameters
- opNode
-
binary operator that is passed the cumulated value and an outer node.
Attributes
- Inherited from:
- NodeSet
Attributes
- Inherited from:
- IterableFactoryDefaults
Finds the inner node corresponding to outerNode
.
Finds the inner node corresponding to outerNode
.
Attributes
- Returns
-
the inner node if found, otherwise
NoSuchElementException
is thrown. - Inherited from:
- NodeSet
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- GraphNodeSet
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
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Definition Classes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnce
Attributes
- Definition Classes
- Inherited from:
- SetOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Finds the inner node corresponding to outerNode
.
Finds the inner node corresponding to outerNode
.
Attributes
- Returns
-
the inner node if found, otherwise
null
. - Inherited from:
- NodeSet
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
removes node
from this node set leaving the edge set unchanged.
removes node
from this node set leaving the edge set unchanged.
Value parameters
- node
-
the node to be removed from the node set.
Attributes
- Inherited from:
- GraphNodeSet
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableFactoryDefaults
Attributes
- Inherited from:
- IterableOnceOps
Iterable
over this NodeSet
mapped to outer nodes.
Iterator over this NodeSet
mapped to outer nodes.
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Sorts all nodes according to ord
, concatenates them using separator
, and prefixes and parenthesizes the result if withPrefix
is true
.
Sorts all nodes according to ord
, concatenates them using separator
, and prefixes and parenthesizes the result if withPrefix
is true
.
Attributes
- Inherited from:
- SetToString (hidden)
Sorts all nodes according to ord
, concatenates them using separator
, and prefixes and parenthesizes the result unless prefix
is blank.
Sorts all nodes according to ord
, concatenates them using separator
, and prefixes and parenthesizes the result unless prefix
is blank.
Attributes
- Inherited from:
- SetToString (hidden)
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- Cloneable
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- Builder
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnce
Attributes
- Inherited from:
- Shrinkable
Attributes
- Inherited from:
- Shrinkable
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Converts this node set to a set of outer nodes.
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- FilterableSet
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Deprecated and Inherited methods
Attributes
- Deprecated
-
[Since version 2.13.0]
Use ++ with an explicit collection argument instead of + with varargs - Inherited from:
- SetOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Consider requiring an immutable Set or fall back to Set.union - Inherited from:
- SetOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use ++ instead of ++: for collections of type Iterable - Inherited from:
- IterableOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use `++=` aka `addAll` instead of varargs `+=`; infix operations with an operand of multiple args will be deprecated - Inherited from:
- Growable
Attributes
- Deprecated
-
[Since version 2.13.0]
Use &- with an explicit collection argument instead of - with varargs - Inherited from:
- SetOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Consider requiring an immutable Set - Inherited from:
- SetOps
Attributes
- Deprecated
-
[Since version 2.13.3]
Use `--=` aka `subtractAll` instead of varargs `-=`; infix operations with an operand of multiple args will be deprecated - Inherited from:
- Shrinkable
Attributes
- Deprecated
-
[Since version 2.13.0]
Use foldLeft instead of /: - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use foldRight instead of :\\ - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
`aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead. - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use iterableFactory instead - Inherited from:
- IterableOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use `dest ++= coll` instead - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details) - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use coll instead of repr in a collection implementation, use the collection value itself from the outside - Inherited from:
- IterableOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use filterInPlace instead - Inherited from:
- SetOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Iterable.seq always returns the iterable itself - Inherited from:
- Iterable
Attributes
- Deprecated
-
[Since version 2.13.7]
toIterable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections - Inherited from:
- Iterable
Attributes
- Deprecated
-
[Since version 2.13.0]
Use .iterator instead of .toIterator - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use .to(LazyList) instead of .toStream - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
toTraversable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections - Inherited from:
- IterableOps