Shrinkable

scalax.collection.mutable.Shrinkable
trait Shrinkable[-N, -E <: Edge[N]] extends OuterElems[N, E]

Attributes

Graph
Supertypes
trait OuterElems[N, E]
class Object
trait Matchable
class Any
Known subtypes
trait GraphOps[N, E, CC]
trait GraphLike[N, E, CC]
trait AdjacencyListGraph[N, E, CC]
class DefaultGraphImpl[N, E]
trait Graph[N, E]

Members list

Type members

Inherited classlikes

sealed case class OuterEdge(edge: E) extends OuterElem

To be mixed in by edge classes to allow passing them to Graph(...).

To be mixed in by edge classes to allow passing them to Graph(...).

Attributes

Inherited from:
OuterElems
Supertypes
trait Serializable
trait Product
trait Equals
trait OuterElem
class Object
trait Matchable
class Any
Show all
trait OuterElem

Attributes

Inherited from:
OuterElems
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class OuterEdge
class OuterNode
sealed case class OuterNode(node: N) extends OuterElem

Wraps any type to be accepted when calling Graph(...).

Wraps any type to be accepted when calling Graph(...).

Attributes

Inherited from:
OuterElems
Supertypes
trait Serializable
trait Product
trait Equals
trait OuterElem
class Object
trait Matchable
class Any
Show all

Value members

Abstract methods

def remove(node: N): Boolean

Removes a single node from this graph.

Removes a single node from this graph.

Attributes

Returns

whether the node existed before.

def remove(edge: E): Boolean

Removes a single edge from this graph.

Removes a single edge from this graph.

Attributes

Returns

whether the edge existed before

def subtractOne(node: N): this.type

Removes a single node from this graph.

Removes a single node from this graph.

Attributes

def subtractOne(edge: E): this.type

Removes a single edge from this graph.

Removes a single edge from this graph.

Attributes

Concrete methods

final def --=(nodes: IterableOnce[N], edges: IterableOnce[E]): this.type

Alias for removeAll(nodes, edges).

Alias for removeAll(nodes, edges).

Attributes

final def --=(edges: IterableOnce[E]): this.type

Alias for removeAll(edges).

Alias for removeAll(edges).

Attributes

final def --=(that: AnyGraph[N, E]): this.type

Alias for diffInPlace.

Alias for diffInPlace.

Attributes

final def -=(node: N): this.type

Alias for subtractOne(node).

Alias for subtractOne(node).

Attributes

final def -=(edge: E): this.type

Alias for subtractOne(node).

Alias for subtractOne(node).

Attributes

final def diffInPlace(that: AnyGraph[N, E]): this.type

Removes all nodes and edges contained in that graph from this graph.

Removes all nodes and edges contained in that graph from this graph.

Attributes

final def removeAll(nodes: IterableOnce[N], edges: IterableOnce[E]): this.type

Removes all nodes and edges from this graph.

Removes all nodes and edges from this graph.

Attributes

final def removeAll(edges: IterableOnce[E]): this.type

Removes all edges from this graph.

Removes all edges from this graph.

Attributes