Grammalecte  Check-in [66018e5911]

Overview
Comment:[build] darg: count root nodes arcs
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | build
Files: files | file ages | folders
SHA3-256: 66018e591149100ecaea1b50b1975a5bd4be71dd5475c1aa1f56debffe969761
User & Date: olr on 2019-05-02 10:10:47
Other Links: manifest | tags
Context
2019-05-03
11:40
[fr] ajustements check-in: f69bfa4b3e user: olr tags: trunk, fr
2019-05-02
10:10
[build] darg: count root nodes arcs check-in: 66018e5911 user: olr tags: trunk, build
09:04
[fx] use default version number for webextension check-in: d23a6cecc3 user: olr tags: trunk, fx, v1.0.2
Changes

Modified darg.py from [0a2000eec8] to [0d3ea50a3a].

92
93
94
95
96
97
98
99
100
101
102
103
104
105
106

    def countNodes (self):
        "count nodes within the whole graph"
        self.nNode = len(self.lMinimizedNodes)

    def countArcs (self):
        "count arcs within the whole graph"
        self.nArc = 0
        for oNode in self.lMinimizedNodes:
            self.nArc += len(oNode.dArcs)

    def displayInfo (self):
        "display informations about the rule graph"
        print(": {:>10,} rules,  {:>10,} nodes,  {:>10,} arcs".format(self.nRule, self.nNode, self.nArc))








|







92
93
94
95
96
97
98
99
100
101
102
103
104
105
106

    def countNodes (self):
        "count nodes within the whole graph"
        self.nNode = len(self.lMinimizedNodes)

    def countArcs (self):
        "count arcs within the whole graph"
        self.nArc = len(self.oRoot.dArcs)
        for oNode in self.lMinimizedNodes:
            self.nArc += len(oNode.dArcs)

    def displayInfo (self):
        "display informations about the rule graph"
        print(": {:>10,} rules,  {:>10,} nodes,  {:>10,} arcs".format(self.nRule, self.nNode, self.nArc))