summaryrefslogtreecommitdiffstats
path: root/lib_subgraphs.py
blob: 9d74e42867d6339422fc29ed6392974d877e0f5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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)