edu.uci.ics.jung.utils
Class HashSettableVertexMapper
java.lang.Object
edu.uci.ics.jung.utils.HashSettableVertexMapper
- All Implemented Interfaces:
- SettableVertexMapper, VertexMapper
public class HashSettableVertexMapper
- extends Object
- implements SettableVertexMapper
Uses a HashMap
to store mappings between vertices.
Places no constraints on mappings (mappings need not be 1-1,
onto, etc.).
- Author:
- Joshua O'Madadhain
Field Summary |
protected Map |
m
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m
protected Map m
HashSettableVertexMapper
public HashSettableVertexMapper()
map
public void map(ArchetypeVertex v1,
ArchetypeVertex v2)
- Specified by:
map
in interface SettableVertexMapper
- See Also:
SettableVertexMapper.map(edu.uci.ics.jung.graph.ArchetypeVertex, edu.uci.ics.jung.graph.ArchetypeVertex)
getMappedVertex
public ArchetypeVertex getMappedVertex(ArchetypeVertex v)
- Specified by:
getMappedVertex
in interface VertexMapper
- See Also:
VertexMapper.getMappedVertex(edu.uci.ics.jung.graph.ArchetypeVertex)