File: multiples-parents-children-simple.py

package info (click to toggle)
python-gvgen 0.9-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 200 kB
  • ctags: 201
  • sloc: python: 719; sh: 24; makefile: 2
file content (19 lines) | stat: -rwxr-xr-x 326 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/python

import gvgen

# Initialisation
import gvgen
graph = gvgen.GvGen()

# Description des objets
proc = graph.newItem("/proc")
net = graph.newItem("/net", proc)
foo = graph.newItem("foo",net)
netfilter = graph.newItem("netfilter", net)
nflog = graph.newItem("nf_log", netfilter)


# Creation du dot
graph.dot()