示例#1
0
 def __init__(self, name=None):
     """ Projection of a bipartite graph to a unipartite graph
     """
     Optionable.__init__(self, name=name)
     self.add_option("proj_wgt", Text(default='p',
          help=u"projection weighting method",
          choices=['no', 'count', 'p', 'pmin', 'pmax', 'pavg', 'confl']))
示例#2
0
    def __init__(self, name=None):
        Optionable.__init__(self, name=name)

        self.add_option(
            "m",
            Numeric(default=0,
                    min=0.,
                    help="Number of edges (with stronger weight) to keep"))
        self.add_option(
            "remove_single",
            Boolean(default=True,
                    help="Remove vertices with no links after filtering"))
示例#3
0
    def __init__(self, name=None):
        Optionable.__init__(self, name=name)

        self.add_option(
            "top_min",
            Numeric(
                default=0,
                min=0.,
                help=
                "Removes type=False vertices connected to less than top_min (type=True) vertices"
            ))
        self.add_option(
            "top_max_ratio",
            Numeric(
                vtype=float,
                default=1.,
                min=0.,
                max=1.,
                help=
                "Removes type=False vertices connected to more than top_max_ratio percents of the (type=True) vertices"
            ))
示例#4
0
 def __init__(self, name=None, directed=False):
     Optionable.__init__(self, name)
     GraphBuilder.__init__(self, directed)
示例#5
0
 def __init__(self, name):
     Optionable.__init__(self, name)
示例#6
0
 def __init__(self, edg_select, name=None):
     Optionable.__init__(self, name=name)
     self._edg_select = edg_select
示例#7
0
 def __init__(self, vtx_select, name=None):
     Optionable.__init__(self, name=name)
     self._vtx_select = vtx_select