Grammalecte  Check-in [66018e5911]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

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 2019-05-02 10:10:47
Context
2019-05-03
11:40
[fr] ajustements check-in: f69bfa4b3e user: olr tags: fr, trunk
2019-05-02
10:10
[build] darg: count root nodes arcs check-in: 66018e5911 user: olr tags: build, trunk
09:04
[fx] use default version number for webextension check-in: d23a6cecc3 user: olr tags: fx, trunk, v1.0.2
Changes

Changes to darg.py.

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))