Skip to content

Commit

Permalink
v0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
j6k4m8 committed Jan 10, 2025
1 parent 5d64656 commit fff7651
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# CHANGELOG

### **0.12.0** (January 10 2025)

#### Housekeeping

- Switch to maintained `lark` parser (#60, thanks @ntjess!)

### **0.11.0** (December 4 2024)

#### Features

- Support multidigraph/digraph without up-conversion (#55, thanks @jackboyla!)

### **0.10.0** (October 18 2024)

> Bugfix for searching multigraphs, and other improvements for multigraphs.
Expand Down
9 changes: 4 additions & 5 deletions grandcypher/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
from lark import Lark, Transformer, v_args, Token, Tree

logging.basicConfig(
level=logging.INFO,
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s"
level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s"
)
logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -169,7 +168,7 @@
start="start",
)

__version__ = "0.10.1"
__version__ = "0.12.0"


_ALPHABET = string.ascii_lowercase + string.digits
Expand Down Expand Up @@ -270,7 +269,7 @@ def _get_edge_attributes(graph: Union[nx.Graph, nx.MultiDiGraph], u, v) -> Dict:
return graph.get_edge_data(u, v)
else:
data = graph.get_edge_data(u, v)
return {0: data} # Wrap in dict to mimic MultiDiGraph structure
return {0: data} # Wrap in dict to mimic MultiDiGraph structure


def _aggregate_edge_labels(edges: Dict) -> Dict:
Expand Down Expand Up @@ -989,7 +988,7 @@ def _edge_hop_motifs(self, motif: nx.MultiDiGraph) -> List[Tuple[nx.Graph, dict]
if motif.out_degree(n) == 0 and motif.in_degree(n) == 0:
new_motif.add_node(n, **motif.nodes[n])
motifs: List[Tuple[nx.DiGraph, dict]] = [(new_motif, {})]

if motif.is_multigraph():
edge_iter = motif.edges(keys=True)
else:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="grand-cypher",
version="0.10.0",
version="0.12.0",
author="Jordan Matelsky",
author_email="[email protected]",
description="Query Grand graphs using Cypher",
Expand Down

0 comments on commit fff7651

Please sign in to comment.