Skip to content

Commit 0b1929e

Browse files
Allow computing the signature of a split link
1 parent ef048b0 commit 0b1929e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

spherogram_src/links/invariants.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,9 @@ def signature(self, new_convention=True):
559559
sage: L.signature(new_convention=False)
560560
2
561561
"""
562+
if not self.digraph().is_weakly_connected():
563+
return sum([L.signature() for L in self.split_link_diagram()])
564+
562565
m, G = self.goeritz_matrix(return_graph=True)
563566
correction = sum(e['sign'] for _, _, e in G.edges(sort=False)
564567
if e['sign'] == e['crossing'].sign)

0 commit comments

Comments
 (0)