edu.stanford.math.plex4.examples
public class SimplexStreamExamples extends java.lang.Object
Constructor and Description |
---|
SimplexStreamExamples() |
Modifier and Type | Method and Description |
---|---|
static ExplicitSimplexStream |
createGraphComplex(AbstractUndirectedGraph graph)
This function produces a simplicial complex from a given undirected graph.
|
static ExplicitSimplexStream |
createGraphComplex(int[][] adjacencyMatrix)
This function produces a simplicial complex from the adjacency matrix of a given graph.
|
static ExplicitSimplexStream |
getAnnulus(int width,
int length) |
static ExplicitStream<Simplex> |
getCircle(int m)
This function returns a simplicial circle with m vertices in it.
|
static ExplicitStream<Simplex> |
getFilteredTriangle()
This function returns a filtered triangle where each simplex enters at a new filtration index.
|
static ExplicitSimplexStream |
getIcosahedron() |
static ExplicitStream<Simplex> |
getOctahedron()
This function returns a simplicial octahedron.
|
static ExplicitStream<Simplex> |
getSimplicialSphere(int dimension)
This function returns a static simplicial complex containing an n-sphere.
|
static ExplicitStream<Simplex> |
getTetrahedron()
This function returns a simplicial tetrahedron (which happens
to be equal to a simplicial 2-sphere).
|
static ExplicitStream<Simplex> |
getTorus()
This function returns a simplicial 2-torus.
|
static ExplicitStream<Simplex> |
getTriangle()
This function returns a simplicial triangle (which happens
to be equal to a simplicial 1-sphere).
|
static ExplicitStream<Simplex> |
getZomorodianCarlssonExample()
This function returns a filtered simplicial complex which is shown in
Figure 1 of the paper "Computing Persistent Homology" by Zomorodian and Carlsson.
|
public static ExplicitStream<Simplex> getZomorodianCarlssonExample()
public static ExplicitStream<Simplex> getFilteredTriangle()
public static ExplicitStream<Simplex> getTriangle()
public static ExplicitStream<Simplex> getTetrahedron()
public static ExplicitStream<Simplex> getSimplicialSphere(int dimension)
dimension
- the dimension of the sphere to producepublic static ExplicitStream<Simplex> getTorus()
public static ExplicitStream<Simplex> getCircle(int m)
m
- the number of vertices in the circlepublic static ExplicitStream<Simplex> getOctahedron()
public static ExplicitSimplexStream getIcosahedron()
public static ExplicitSimplexStream getAnnulus(int width, int length)
public static ExplicitSimplexStream createGraphComplex(AbstractUndirectedGraph graph)
graph
- the graph to convert to a simplicial complexpublic static ExplicitSimplexStream createGraphComplex(int[][] adjacencyMatrix)
adjacencyMatrix
- the adjacency matrix of the graph to convert to a simplicial complex