Skip to content

Commit

Permalink
Merge pull request #218 from devendragovil/main
Browse files Browse the repository at this point in the history
Update README.md to reflect new changes in module import
  • Loading branch information
mhajij authored Aug 17, 2023
2 parents 790766d + ecb135b commit c5cc0cb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ pre-commit install
## Example 1: creating a simplicial complex

```python
import toponetx as tnx
from toponetx.classes import SimplicialComplex

# Instantiate a SimplicialComplex object with a few simplices

sc = tnx.SimplicialComplex([[1, 2, 3], [2, 3, 4], [0, 1]])
sc = SimplicialComplex([[1, 2, 3], [2, 3, 4], [0, 1]])

# Compute the incidence matrix between 1-skeleton and 0-skeleton

Expand All @@ -103,11 +103,11 @@ B2 = sc.incidence_matrix(2)
## Example 2: creating a cell complex

```python
import toponetx as tnx
from toponetx.classes import CellComplex

# Instantiate a CellComplex object with a few cells

cx = tnx.CellComplex([[1, 2, 3, 4], [3, 4, 5, 6, 7, 8]], ranks=2)
cx = CellComplex([[1, 2, 3, 4], [3, 4, 5, 6, 7, 8]], ranks=2)

# Add an edge (cell of rank 1) after initialization

Expand All @@ -125,11 +125,11 @@ L2 = cx.hodge_laplacian_matrix(2)
## Example 3: creating a combinatorial complex

```python
import toponetx as tnx
from toponetx.classes import CombinatorialComplex

# Instantiate a combinatorial complex object with a few cells

cc = tnx.CombinatorialComplex()
cc = CombinatorialComplex()

# Add some cells of different ranks after initialization

Expand Down

0 comments on commit c5cc0cb

Please sign in to comment.