Skip to content

Commit

Permalink
fixed pr
Browse files Browse the repository at this point in the history
  • Loading branch information
Coerulatus committed Feb 13, 2025
1 parent ac22a74 commit 8b9c0c6
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,21 @@


def create_test_graph():
"""Create a simple test graph.
Returns
-------
torch_geometric.data.Data
A simple test graph.
"""
num_nodes = 5
x = [1] * num_nodes
edge_index = [[0, 0, 1, 1, 2, 2, 3], [1, 4, 2, 3, 3, 4, 4]]
y = [0, 0, 1, 1, 0]

return torch_geometric.data.Data(
x=torch.tensor(x).float().reshape(-1, 1),
edge_index=torch.Tensor(edge_index),
edge_index=torch.tensor(edge_index, dtype=torch.long),
num_nodes=num_nodes,
y=torch.tensor(y),
)
Expand All @@ -27,6 +34,7 @@ class TestNeighborhoodComplexLifting:
"""Test the SimplicialCliqueLifting class."""

def setup_method(self):
"""Initialise the test class."""
# Load the graph
self.data = create_test_graph() # load_manual_graph()

Expand Down

0 comments on commit 8b9c0c6

Please sign in to comment.