T - type of the nodes of the graphpublic interface AdjacencyMatrix<T extends Comparable<?>>
| Modifier and Type | Method and Description |
|---|---|
T[] |
getNodes()
Get graph nodes
|
double |
getWeight(T nodeSrc,
T nodeTgt)
Get weight of edge from
nodeSrc to nodeTgt. |
boolean |
isDirected()
Returns true if graph has directed edges, false if undirected
|
int |
numOfNodes()
Get number of graph nodes
|
void |
setWeight(T nodeSrc,
T nodeTgt,
double weight)
Set weight of edge from
nodeSrc to nodeTgt. |
void setWeight(T nodeSrc, T nodeTgt, double weight)
nodeSrc to nodeTgt.int numOfNodes()
T[] getNodes()
boolean isDirected()
Copyright © 2010–2025 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.