public class GraphColorMapper<V,E extends org.jgrapht.graph.DefaultWeightedEdge> extends ColorMapper
Modifier and Type | Field and Description |
---|---|
static String |
BETWEENNESS_CENTRALITY
Flag for "Betweenness centrality" mapping.
|
static String |
CONNECTIVITY
Flag for "Connected components" mapping.
|
static String |
ECCENTRICITY
Flag for "Eccentricity" mapping.
|
static String |
EDGE_WEIGHT
Flag for "Edge weight" mapping.
|
static int |
EDGES |
protected SNTGraph<V,E> |
graph |
static String |
HEAVY_PATH_DECOMPOSITION
Flag for "Heavy path decomposition" mapping.
|
static String |
IN_DEGREE
Flag for "In degree" mapping.
|
static String |
INCOMING_WEIGHT
Flag for "Incoming weight" mapping.
|
static String |
OUT_DEGREE
Flag for "Out degree" mapping.
|
static String |
OUTGOING_WEIGHT
Flag for "Outgoing weight" mapping.
|
static String |
PAGE_RANK
Flag for "Page rank" mapping.
|
protected org.jgrapht.graph.AsSubgraph<V,E> |
subgraph |
static int |
VERTICES |
static int |
VERTICES_AND_EDGES |
colorTable, integerScale, max, min
Constructor and Description |
---|
GraphColorMapper() |
GraphColorMapper(Context context) |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAvailableLuts()
Gets the available LUTs.
|
ColorTable |
getColorTable(String lut) |
static List<String> |
getMetrics()
Gets the list of supported mapping metrics.
|
int |
map(SNTGraph<V,E> graph,
org.jgrapht.graph.AsSubgraph<V,E> subgraph,
String measurement,
ColorTable colorTable) |
int |
map(SNTGraph<V,E> graph,
String measurement,
ColorTable colorTable) |
int |
map(SNTGraph<V,E> graph,
String measurement,
String lut) |
protected void |
mapToBetweennessCentrality(ColorTable colorTable) |
protected void |
mapToConnectivity(ColorTable colorTable) |
protected void |
mapToEccentricity(ColorTable colorTable) |
protected void |
mapToEdgeWeight(ColorTable colorTable) |
protected void |
mapToHeavyPathDecomposition(ColorTable colorTable) |
protected void |
mapToIncomingWeight(ColorTable colorTable) |
protected void |
mapToInDegree(ColorTable colorTable) |
protected void |
mapToOutDegree(ColorTable colorTable) |
protected void |
mapToOutgoingWeight(ColorTable colorTable) |
protected void |
mapToPageRank(ColorTable colorTable) |
protected void |
mapToProperty(String measurement,
ColorTable colorTable) |
void |
resetMinMax() |
void |
setMinMax(double min,
double max)
Sets the LUT mapping bounds.
|
getColor, getColorRGB, getColorTable, getMinMax, map
public static final String BETWEENNESS_CENTRALITY
public static final String ECCENTRICITY
public static final String CONNECTIVITY
public static final String EDGE_WEIGHT
public static final String PAGE_RANK
public static final String IN_DEGREE
public static final String OUT_DEGREE
public static final String INCOMING_WEIGHT
public static final String OUTGOING_WEIGHT
public static final String HEAVY_PATH_DECOMPOSITION
public static final int VERTICES
public static final int EDGES
public static final int VERTICES_AND_EDGES
public GraphColorMapper(Context context)
public GraphColorMapper()
public static List<String> getMetrics()
public Set<String> getAvailableLuts()
public ColorTable getColorTable(String lut)
public int map(SNTGraph<V,E> graph, String measurement, ColorTable colorTable)
public int map(SNTGraph<V,E> graph, org.jgrapht.graph.AsSubgraph<V,E> subgraph, String measurement, ColorTable colorTable)
protected void mapToProperty(String measurement, ColorTable colorTable)
protected void mapToConnectivity(ColorTable colorTable)
protected void mapToEdgeWeight(ColorTable colorTable)
protected void mapToBetweennessCentrality(ColorTable colorTable)
protected void mapToEccentricity(ColorTable colorTable)
protected void mapToPageRank(ColorTable colorTable)
protected void mapToInDegree(ColorTable colorTable)
protected void mapToOutDegree(ColorTable colorTable)
protected void mapToIncomingWeight(ColorTable colorTable)
protected void mapToOutgoingWeight(ColorTable colorTable)
protected void mapToHeavyPathDecomposition(ColorTable colorTable)
public void setMinMax(double min, double max)
ColorMapper
setMinMax
in class ColorMapper
min
- the mapping lower bound (i.e., the highest measurement value for
the LUT scale). It is automatically calculated (the default) when
set to Double.NaNmax
- the mapping upper bound (i.e., the highest measurement value for
the LUT scale).It is automatically calculated (the default) when
set to Double.NaN.public void resetMinMax()
Copyright © 2015–2021 Fiji. All rights reserved.