edu.stanford.math.plex4.graph.metric
public class ShortestPathMetric extends java.lang.Object implements GraphMetricFactory
Modifier and Type | Method and Description |
---|---|
AbstractIntMetricSpace |
createMetricSpace(AbstractUndirectedGraph graph)
This function produces a finite metric space on the vertex set of a given graph.
|
static ShortestPathMetric |
getInstance() |
public static ShortestPathMetric getInstance()
public AbstractIntMetricSpace createMetricSpace(AbstractUndirectedGraph graph)
GraphMetricFactory
createMetricSpace
in interface GraphMetricFactory
graph
- the graph whose vertex set forms the point set of the metric space