summaryrefslogtreecommitdiffstats
path: root/lib_subgraphs.py
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2013-09-05 18:18:56 +0200
committerJan Pokorný <jpokorny@redhat.com>2013-09-05 18:18:56 +0200
commit98155ef7c0d9cf6102be9d6afa0f1fa534edface (patch)
treec37c2b6c502f818fe364f3c8f2730aff868b97c7 /lib_subgraphs.py
parent71d80785f618a6208de50fe9c85a6831563199de (diff)
downloadcluster-overview-98155ef7c0d9cf6102be9d6afa0f1fa534edface.tar.gz
cluster-overview-98155ef7c0d9cf6102be9d6afa0f1fa534edface.tar.xz
cluster-overview-98155ef7c0d9cf6102be9d6afa0f1fa534edface.zip
Split subgraphs/nodes/edges library to separate files
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'lib_subgraphs.py')
-rw-r--r--lib_subgraphs.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib_subgraphs.py b/lib_subgraphs.py
new file mode 100644
index 0000000..9d74e42
--- /dev/null
+++ b/lib_subgraphs.py
@@ -0,0 +1,23 @@
+#!/usr/bin/env python
+# vim: set fileencoding=UTF-8:
+# Copyright 2013 Red Hat, Inc.
+# Author: Jan Pokorný <jpokorny at redhat dot com>
+# Distributed under GPLv2+; generated content under CC-BY-SA 3.0
+# (to view a copy, visit http://creativecommons.org/licenses/by-sa/3.0/)
+"""Subgraph library incl. visual aspects"""
+
+from lib import LibSubgraph
+
+
+class SubgraphImportant(LibSubgraph):
+ def __init__(self, *args, **kwargs):
+ kwargs.setdefault('fillcolor', '#eaeaea')
+ kwargs.setdefault('style', 'bold, filled, rounded')
+ super(SubgraphImportant, self).__init__(*args, **kwargs)
+
+
+class SubgraphStandard(LibSubgraph):
+ def __init__(self, *args, **kwargs):
+ kwargs.setdefault('fillcolor', '#f5f5f5')
+ kwargs.setdefault('style', 'filled, rounded')
+ super(SubgraphStandard, self).__init__(*args, **kwargs)