Skip to content

Commit 505793c

Browse files
author
Oliver Scott
committed
added graph_type attribute
1 parent 3b57fbe commit 505793c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

scaffoldgraph/network.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ScaffoldNetwork(ScaffoldGraph):
1818
"""
1919

2020
def __init__(self, graph=None):
21-
super(ScaffoldNetwork, self).__init__(graph, MurckoRingFragmenter())
21+
super(ScaffoldNetwork, self).__init__(graph, MurckoRingFragmenter(), 'network')
2222

2323
def _recursive_constructor(self, child):
2424
parents = (p for p in self.fragmenter.fragment(child) if p)
@@ -49,7 +49,7 @@ class HierS(ScaffoldGraph):
4949
"""
5050

5151
def __init__(self, graph=None):
52-
super(HierS, self).__init__(graph, MurckoRingSystemFragmenter())
52+
super(HierS, self).__init__(graph, MurckoRingSystemFragmenter(), 'hiers')
5353

5454
def _recursive_constructor(self, child):
5555
parents = (p for p in self.fragmenter.fragment(child) if p)

scaffoldgraph/tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ScaffoldTree(ScaffoldGraph):
2424
"""
2525

2626
def __init__(self, graph=None, prioritization_rules=None):
27-
super(ScaffoldTree, self).__init__(graph, MurckoRingFragmenter(True))
27+
super(ScaffoldTree, self).__init__(graph, MurckoRingFragmenter(True), 'tree')
2828
self.rules = prioritization_rules if prioritization_rules else original_ruleset
2929

3030
def _recursive_constructor(self, child):

0 commit comments

Comments
 (0)