scalax.collection
Contains the base traits and objects needed to use '''Graph for Scala'''.
See also the Graph for Scala Core User Guide.
Attributes
Members list
Packages
This package helps you to create random graphs with predefined metrics. It is not only possible to create random graph instances but also Scalacheck generators.
This package helps you to create random graphs with predefined metrics. It is not only possible to create random graph instances but also Scalacheck generators.
Attributes
Type members
Classlikes
Bundled functionality for mutable and immutable graphs alike.
Bundled functionality for mutable and immutable graphs alike.
Type parameters
- E
-
the type of the edges in this graph.
- N
-
the type of the nodes (vertices) in this graph.
Attributes
- Supertypes
-
trait Serializableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
Substitute for Scala 2.12 Traversable
to continue support for collections that cannot implement hasNext
/next
easily. The methods of Scala 2.13's IterableOnce
are implemented in terms of foreach
.
Substitute for Scala 2.12 Traversable
to continue support for collections that cannot implement hasNext
/next
easily. The methods of Scala 2.13's IterableOnce
are implemented in terms of foreach
.
All methods with a collection result detach from this Iterable
to Vector
. This makes sense whenever the foreach
implementation
- causes significant computation overhead or
- is not valid for arbitrary subcollections.
Attributes
- Supertypes
- Known subtypes
-
class InnerEdgeTraverserclass InnerEdgeTraverserImplclass InnerNodeDownUpTraverserclass InnerNodeTraverserclass InnerNodeTraverserImplclass OuterEdgeTraverserclass OuterEdgeTraverserImpltrait OuterElemTraverserclass OuterElemTraverserImplclass OuterNodeDownUpTraverserclass OuterNodeTraverserclass OuterNodeTraverserImplShow all
Base template trait for graphs.
Base template trait for graphs.
This trait provides the common structure and base operations for immutable graphs independently of their representation. Base operations also cover one-step traversals. For unlimited traversals see trait GraphTraversal
.
Users of Graph usually don't interact directly with this trait but with trait Graph
instead which inherits the functionality provided by this trait.
If E
inherits DirectedEdgeLike
the graph is directed, otherwise it is undirected or mixed.
Type parameters
- E
-
the kind of the edges (links) in this graph.
- N
-
the user type of the nodes (vertices) in this graph.
Attributes
- Companion
- object
- Supertypes
-
trait Serializableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
Show all
- Self type
-
Mixin for degree calculations.
Mixin for degree calculations.
Type parameters
- E
-
the type of the edges in this graph.
- N
-
the user type of the nodes (vertices) in this graph.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
Show all
- Self type
-
A template trait for graphs.
A template trait for graphs.
This trait provides the common structure and operations of immutable graphs independently of their representation.
If E
inherits DiHyperEdgeLike
the graph is directed, otherwise it is undirected or mixed.
Type parameters
- E
-
the type of the edges in this graph.
- N
-
the user type of the nodes (vertices) in this graph.
- This
-
the higher kinded type of the graph itself.
Attributes
- Supertypes
-
trait Serializableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
Show all
- Self type
-
CC[N, E]
Operations common to mutable and immutable graphs.
Operations common to mutable and immutable graphs.
Attributes
- Supertypes
- Known subtypes
-
Show all
Graph-related functionality such as traversals, path finding, cycle detection etc. All algorithms including breadth-first, depth-first, white-gray-black search and Dijkstra's algorithm are tail recursive.
Graph-related functionality such as traversals, path finding, cycle detection etc. All algorithms including breadth-first, depth-first, white-gray-black search and Dijkstra's algorithm are tail recursive.
Before starting a traversal a Traverser
such as scalax.collection.GraphTraversal#InnerNodeTraverser is instantiated explicitly or implicitly. It holds settings like maxDepth
, subgraph
or ordering
providing a fine-grained control of the traversal. Traverser
s also extend scala.collection.Iterable
meaning that you can process the visited nodes and edges in a functional way.
Attributes
- See also
- Companion
- object
- Supertypes
-
trait Serializableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
Show all
- Self type
-
Contains traversal parameter definitions such as direction constants.
Contains traversal parameter definitions such as direction constants.
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
GraphTraversal.type
Default implementation of the functionality defined by GraphTraversal except for algorithms that are placed in TraverserImpl.
Default implementation of the functionality defined by GraphTraversal except for algorithms that are placed in TraverserImpl.
Attributes
- Supertypes
-
trait Serializableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
- Self type
-
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Represents parameters that are accepted when calling Graph(...)
.
Represents parameters that are accepted when calling Graph(...)
.
Represents parameters that are accepted when calling Graph(...)
.
Type parameters
- E
-
the kind of the edges (links)
- N
-
the type of the nodes (vertices)
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
Show all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
OuterImplicits.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ToString.type
Default implementation of the graph algorithms defined in GraphTraversal.
Default implementation of the graph algorithms defined in GraphTraversal.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
- Self type
-
Types
scala.collection.Set extended by some useful methods in the context of Graph.