Package org.jgrapht.ext
Interface ComponentAttributeProvider<T>
-
public interface ComponentAttributeProvider<T>
Provides display attributes for vertices and/or edges in a graph.- Version:
- $Id: ComponentAttributeProvider.java 714 2010-06-13 01:19:56Z perfecthash $
- Author:
- John Sichi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>
getComponentAttributes(T component)
Returns a set of attribute key/value pairs for a vertex or edge.
-
-
-
Method Detail
-
getComponentAttributes
java.util.Map<java.lang.String,java.lang.String> getComponentAttributes(T component)
Returns a set of attribute key/value pairs for a vertex or edge. If order is important in the output, be sure to use an order-deterministic map implementation.- Parameters:
component
- vertex or edge for which attributes are to be obtained- Returns:
- key/value pairs, or null if no attributes should be supplied
-
-