Package | Description |
---|---|
edu.ucla.sspace.graph | |
edu.ucla.sspace.graph.io | |
edu.ucla.sspace.graph.isomorphism | |
edu.ucla.sspace.util |
Modifier and Type | Method and Description |
---|---|
static DirectedGraph<DirectedEdge> |
GraphIO.readDirected(File f,
Indexer<String> vertexIndexer) |
static DirectedMultigraph<String> |
GraphIO.readDirectedMultigraph(File f,
Indexer<String> vertexIndexer) |
static Graph<Edge> |
GraphIO.readUndirected(File f,
Indexer<String> vertexIndexer) |
static Graph<Edge> |
GraphIO.readUndirectedFromWeighted(File f,
Indexer<String> vertexIndexer,
double minWeight)
Reads in an undirected network from a file containing weighted edges,
only keeping those undirected edges whose weight was above the specified
threshold
|
static UndirectedMultigraph<String> |
GraphIO.readUndirectedMultigraph(File f,
Indexer<String> vertexIndexer) |
static WeightedGraph<WeightedEdge> |
GraphIO.readWeighted(File f,
Indexer<String> vertexIndexer) |
static WeightedGraph<WeightedEdge> |
GraphIO.readWeighted(File f,
Indexer<String> vertexIndexer,
double minWeight) |
static <E extends Edge,G extends Graph<E>> |
Graphs.toLineGraph(G graph,
Indexer<E> edgeIndices)
Converts the provided graph into a line graph, where each
edge is mapped to a vertex and edges that share vertices are connected by
an edge in the line graph, using
edgeIndices to specify the
mapping between edges in the input graph and their corresponding vertices
in the line graph. |
static void |
GraphIO.writeUndirected(File f,
Graph<? extends Edge> g,
Indexer<String> vertexLabels) |
static <T> void |
GraphIO.writeUndirectedMultigraph(Multigraph<T,TypedEdge<T>> g,
File f,
Indexer<String> vertexLabels) |
static void |
GraphIO.writeWeighted(File f,
WeightedGraph<? extends WeightedEdge> g,
Indexer<String> vertexLabels) |
Constructor and Description |
---|
LabeledGraph(Graph<E> graph,
Indexer<L> vertexLabels) |
Modifier and Type | Method and Description |
---|---|
DirectedGraph<DirectedEdge> |
GraphReaderAdapter.readDirected(File f,
Indexer<String> vertexLabels)
Reads in the directed graph from the provided file, using the specified
Indexer to decide how vertex labels in the file are mapped to
numeric vertices. |
DirectedGraph<DirectedEdge> |
GraphReader.readDirected(File f,
Indexer<String> vertexLabels)
Reads in the directed graph from the provided file, using the specified
Indexer to decide how vertex labels in the file are mapped to
numeric vertices. |
DirectedGraph<DirectedEdge> |
EdgeListReader.readDirected(File f,
Indexer<String> vertexIndexer) |
DirectedMultigraph<String> |
GraphReaderAdapter.readDirectedMultigraph(File f,
Indexer<String> vertexLabels)
Reads in the graph from the provided file, using the specified
Indexer to decide how vertex labels in the file are mapped to numeric
vertices. |
DirectedMultigraph<String> |
GraphReader.readDirectedMultigraph(File f,
Indexer<String> vertexLabels)
Reads in the graph from the provided file, using the specified
Indexer to decide how vertex labels in the file are mapped to numeric
vertices. |
DirectedMultigraph<String> |
EdgeListReader.readDirectedMultigraph(File f,
Indexer<String> vertexIndexer) |
Graph<Edge> |
GraphReaderAdapter.readUndirected(File f,
Indexer<String> vertexLabels)
Reads in the graph from the provided file, using the specified
Indexer to decide how vertex labels in the file are mapped to numeric
vertices. |
Graph<Edge> |
GraphReader.readUndirected(File f,
Indexer<String> vertexLabels)
Reads in the graph from the provided file, using the specified
Indexer to decide how vertex labels in the file are mapped to numeric
vertices. |
Graph<Edge> |
EdgeListReader.readUndirected(File f,
Indexer<String> vertexIndexer) |
Graph<Edge> |
GraphReaderAdapter.readUndirectedFromWeighted(File f,
Indexer<String> vertexLabels,
double minWeight)
Reads in an undirected network from a file containing weighted edges,
only keeping those undirected edges whose weight was above the specified
threshold
|
Graph<Edge> |
GraphReader.readUndirectedFromWeighted(File f,
Indexer<String> vertexLabels,
double minWeight)
Reads in an undirected network from a file containing weighted edges,
only keeping those undirected edges whose weight was above the specified
threshold
|
Graph<Edge> |
EdgeListReader.readUndirectedFromWeighted(File f,
Indexer<String> vertexIndexer,
double minWeight)
Reads in an undirected network from a file containing weighted edges,
only keeping those undirected edges whose weight was above the specified
threshold
|
UndirectedMultigraph<String> |
GraphReaderAdapter.readUndirectedMultigraph(File f,
Indexer<String> vertexLabels) |
UndirectedMultigraph<String> |
GraphReader.readUndirectedMultigraph(File f,
Indexer<String> vertexLabels)
Reads in the multigraph from the provided file, using the specified
Indexer to decide how vertex labels in the file are mapped to
numeric vertices. |
UndirectedMultigraph<String> |
EdgeListReader.readUndirectedMultigraph(File f,
Indexer<String> vertexIndexer) |
WeightedGraph<WeightedEdge> |
GraphReaderAdapter.readWeighted(File f,
Indexer<String> vertexLabels)
Reads in the weighted graph from the provided file, using the specified
Indexer to decide how vertex labels in the file are mapped to
numeric vertices. |
WeightedGraph<WeightedEdge> |
GraphReader.readWeighted(File f,
Indexer<String> vertexLabels)
Reads in the weighted graph from the provided file, using the specified
Indexer to decide how vertex labels in the file are mapped to
numeric vertices. |
WeightedGraph<WeightedEdge> |
EdgeListReader.readWeighted(File f,
Indexer<String> vertexIndexer) |
WeightedGraph<WeightedEdge> |
GraphReaderAdapter.readWeighted(File f,
Indexer<String> vertexLabels,
double minWeight)
Reads in the graph from the provided file, using the specified
Indexer to decide how vertex labels in the file are mapped to numeric
vertices, and keeping only those weights above the specified value. |
WeightedGraph<WeightedEdge> |
GraphReader.readWeighted(File f,
Indexer<String> vertexLabels,
double minWeight)
Reads in the graph from the provided file, using the specified
Indexer to decide how vertex labels in the file are mapped to numeric
vertices, and keeping only those weights above the specified value. |
WeightedGraph<WeightedEdge> |
EdgeListReader.readWeighted(File f,
Indexer<String> vertexIndexer,
double minWeight) |
WeightedDirectedMultigraph<String> |
GraphMLReader.readWeightedDirectedMultigraph(File f,
Indexer<String> vertexLabels) |
WeightedDirectedMultigraph<String> |
GraphMLReader.readWeightedDirectedMultigraphFromDOM(File f,
Indexer<String> vertexLabels) |
<T,E extends TypedEdge<T>> |
GexfIO.write(Multigraph<T,E> g,
File f,
Indexer<String> vertexLabels)
Writes the provided multigraph to the specified
gexf file, using
vertexLabels to name the vertices. |
<T,E extends TypedEdge<T>> |
GexfIO.write(Multigraph<T,E> g,
File f,
Map<T,Color> edgeColors,
Indexer<String> vertexLabels)
Writes the provided multigraph to the specified
gexf file, using
edgeColors as a guide for how to display parallel edges of
different types, and vertexLabels to name the vertices. |
void |
GexfIO.write(WeightedGraph<? extends WeightedEdge> g,
File gexfFile,
Indexer<String> vertexLabels)
Writes the
WeightedGraph to file in gexf format. |
<E extends Edge> |
DotIO.writeUndirectedGraph(Graph<E> g,
File f,
Indexer<String> vertexLabels) |
<T,E extends TypedEdge<T>> |
DotIO.writeUndirectedMultigraph(Multigraph<T,E> g,
File f,
Map<T,Color> edgeColors,
Indexer<String> vertexLabels)
Writes the provided multigraph to the specified DOT file, using
edgeColors as a guide for how to display parallel edges of different
types. |
Constructor and Description |
---|
DotIO(Indexer<String> indexer) |
DotWriter(Indexer<String> indexer) |
PajekIO(Indexer<String> vertexIndex) |
Modifier and Type | Class and Description |
---|---|
class |
TypedIsomorphicGraphIndexer<T,G extends Multigraph<T,? extends TypedEdge<T>>>
An indexer that records only indices for non-isomorphic
Multigraph
instances. |
Modifier and Type | Class and Description |
---|---|
class |
HashIndexer<T>
A utility class for mapping a set of objects to unique indices based on
object equality.
|
class |
ObjectIndexer<T>
A utility class for mapping a set of objects to unique indices based on
object equality.
|
Constructor and Description |
---|
HashIndexer(Indexer<? extends T> indexed)
Creates an
HashIndexer with indices for all of the provided items. |
IndexedCounter(Indexer<T> objectIndices)
Creates an empty
Counter that uses the provided indexer to map
countable values to corresponding indices. |
IndexedCounter(Indexer<T> objectIndices,
boolean allowNewIndices)
Creates an empty
Counter that uses the provided indexer to map
countable values to corresponding indices. |
ObjectIndexer(Indexer<? extends T> indexed)
Creates an
ObjectIndexer with indices for all of the provided items. |
Copyright © 2012. All Rights Reserved.