de.unihalle.informatik.MiToBo.tracking.multitarget.datatypes.interfaces
Interface AdjacencyMatrix<T extends java.lang.Comparable<?>>

Type Parameters:
T - type of the nodes of the graph
All Known Implementing Classes:
MatchingAdjacencyMatrix, ObservationAdjacency

public interface AdjacencyMatrix<T extends java.lang.Comparable<?>>

Interface for the adjacency matrix of a graph.

Author:
Oliver Gress

Method Summary
 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.
 

Method Detail

getNodes

T[] getNodes()
Get graph nodes


getWeight

double getWeight(T nodeSrc,
                 T nodeTgt)
Get weight of edge from nodeSrc to nodeTgt.


isDirected

boolean isDirected()
Returns true if graph has directed edges, false if undirected


numOfNodes

int numOfNodes()
Get number of graph nodes


setWeight

void setWeight(T nodeSrc,
               T nodeTgt,
               double weight)
Set weight of edge from nodeSrc to nodeTgt.