We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef7e291 commit a1d6c80Copy full SHA for a1d6c80
pydatastructs/graphs/graph.py
@@ -134,7 +134,9 @@ def get_snapshot(self, timestamp: int):
134
if timestamp not in self.snapshots:
135
raise ValueError(f"Snapshot for timestamp {timestamp} does not exist. "
136
f"Available timestamps: {sorted(self.snapshots.keys())}")
137
- return self.snapshots[timestamp]
+ snapshot_info = self.snapshots[timestamp]
138
+ snapshot_graph = snapshot_info["graph"]
139
+ stored_signature = snapshot_info["signature"]
140
def list_snapshots(self):
141
"""Returns all stored timestamps in sorted order."""
142
return sorted(self.snapshots.keys())
0 commit comments