GraphDegree
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
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
Show all
- Self type
-
Members list
Type members
Classlikes
Attributes
- Supertypes
- Self type
-
Degree.type
Decreasing ordering of nodes with respect to their degree.
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
DegreeOrdering.type
Attributes
- Supertypes
Attributes
- Supertypes
- Self type
-
InDegree.type
Decreasing ordering of integers.
Attributes
- Supertypes
- Self type
-
OutDegree.type
Types
Type alias for entries in degree maps returned by degreeSeqMap
.
Type alias for entries in degree maps returned by degreeSeqMap
.
Attributes
Value members
Concrete methods
The degree set of this graph projected onto a map. The keys of the map are the degrees in decreasing order while the values are the number of inner nodes having the degree of the corresponding key.
The degree set of this graph projected onto a map. The keys of the map are the degrees in decreasing order while the values are the number of inner nodes having the degree of the corresponding key.
Value parameters
- selects
-
nodes to be included by their degree.
- the
-
degree function to apply to the nodes defaulting to
Degree
. Non-default predefined degree functions areInDegree
andOutDegree
.
Attributes
The degree sequence of this graph projected onto a sequence of tuples. The first elements of the tuples are the degrees in non-increasing order while the second elements are the corresponding inner nodes.
The degree sequence of this graph projected onto a sequence of tuples. The first elements of the tuples are the degrees in non-increasing order while the second elements are the corresponding inner nodes.
Value parameters
- selects
-
nodes to be included by their degree.
- the
-
degree function to apply to the nodes defaulting to
Degree
. Non-default predefined degree functions areInDegree
andOutDegree
.
Attributes
The degree set of this graph projected onto a map. The keys of the map are the degrees in decreasing order while the values are sets of the corresponding inner nodes.
The degree set of this graph projected onto a map. The keys of the map are the degrees in decreasing order while the values are sets of the corresponding inner nodes.
Value parameters
- selects
-
nodes to be included by their degree.
- the
-
degree function to apply to the nodes defaulting to
Degree
. Non-default predefined degree functions areInDegree
andOutDegree
.
Attributes
The degree sequence of this graph, that is the non-increasing sequence of degrees over all nodes.
The degree sequence of this graph, that is the non-increasing sequence of degrees over all nodes.
Value parameters
- selects
-
nodes to be included by their degree.
- the
-
degree function to apply to the nodes defaulting to
Degree
. Non-default predefined degree functions areInDegree
andOutDegree
.
Attributes
The degree set of this graph, that is the decreasing set of unique degrees over all nodes. Same as degreeSeq without duplicates.
The degree set of this graph, that is the decreasing set of unique degrees over all nodes. Same as degreeSeq without duplicates.
Value parameters
- selects
-
nodes to be included by their degree.
- the
-
degree function to apply to the nodes defaulting to
Degree
. Non-default predefined degree functions areInDegree
andOutDegree
.
Attributes
The degree of the node having the highest degree or 0
if this graph is empty.
The degree of the node having the highest degree or 0
if this graph is empty.
Value parameters
- selects
-
nodes to be included by their degree.
- the
-
degree function to apply to the nodes defaulting to
Degree
. Non-default predefined degree functions areInDegree
andOutDegree
.
Attributes
The degree of the node having the least degree or 0
if this graph is empty.
The degree of the node having the least degree or 0
if this graph is empty.
Value parameters
- selects
-
nodes to be included by their degree.
- the
-
degree function to apply to the nodes defaulting to
Degree
. Non-default predefined degree functions areInDegree
andOutDegree
.
Attributes
The total degree of this graph equaling to the sum of the degrees over all nodes or 0
if this graph is empty.
The total degree of this graph equaling to the sum of the degrees over all nodes or 0
if this graph is empty.
Value parameters
- degreeFilter
-
selects nodes to be included by their degree.
- nodeDegree
-
the degree function to apply to the nodes defaulting to
Degree
. Non-default predefined degree functions areInDegree
andOutDegree
.