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

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

@ALDMetaInfo(export=ALLOWED)
public interface AdjacencyMatrix<T extends 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

getWeight

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


setWeight

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


numOfNodes

int numOfNodes()
Get number of graph nodes


getNodes

T[] getNodes()
Get graph nodes


isDirected

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



Copyright © 2010–2015 Martin Luther University Halle-Wittenberg. All rights reserved.