diff --git a/src/sssom/cliques.py b/src/sssom/cliques.py index 5c579d44..53e7b5c5 100644 --- a/src/sssom/cliques.py +++ b/src/sssom/cliques.py @@ -4,8 +4,7 @@ import statistics import uuid from collections import defaultdict -from typing import DefaultDict, Dict, List, Optional, Set, TYPE_CHECKING - +from typing import TYPE_CHECKING, DefaultDict, Dict, List, Optional, Set import pandas as pd from sssom_schema import Mapping, MappingSet @@ -30,6 +29,7 @@ if TYPE_CHECKING: import networkx + def to_digraph(msdf: MappingSetDataFrame) -> "networkx.DiGraph": """Convert to a graph where the nodes are entities' CURIEs and edges are their mappings.""" import networkx as nx