public class UndirectedGraphNode<K,V> extends AbstractGraphNode<K,V> implements Comparable<UndirectedGraphNode<K,V>>
item, key, visited
Constructor and Description |
---|
UndirectedGraphNode(K key) |
UndirectedGraphNode(K key,
V value,
Graph<UndirectedGraphNode<K,V>,K,V> graph) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(UndirectedGraphNode<K,V> o) |
Graph<UndirectedGraphNode<K,V>,K,V> |
getGraph() |
int |
numNeighbors() |
public UndirectedGraphNode(K key)
public int compareTo(UndirectedGraphNode<K,V> o)
compareTo
in interface Comparable<UndirectedGraphNode<K,V>>
public int numNeighbors()
Copyright © 2003–2023 UBC Michael Smith Laboratories. All rights reserved.