public class kshell
extends java.lang.Object
Constructor and Description |
---|
kshell() |
Modifier and Type | Method and Description |
---|---|
static <N extends kshell_node,E> |
calc(Graph<N,E> graph)
Calculate the maximum k-shell membership for each node in the Graph, storing
the result in the gkc().k field of the node.
|
public static <N extends kshell_node,E> int calc(Graph<N,E> graph)
N
- The type of the node, which must implement kshell_node.E
- The type of the edges in the graph.graph
- The graph to act on.