Example #1
0
    def __init__(self, path, fileName, callback, k=None, weighted=True, normalized=True):
        Centrality.__init__(self)  # init Worker Thread Class
        self.callback = callback
        self.k = k
        self.weighted = weighted
        self.normalized = normalized
        self.column_name = "betweenness"
        self.path = path
        self.file_name = fileName
        self.path_2_shp = os.path.join(self.path, self.file_name) + ".shp"
        self.path_2_log = os.path.join(self.path, self.file_name) + ".log"

        self.G = nx.MultiGraph()
        self.buildQuery()
        self.start()
Example #2
0
    def __init__(self, path, fileName, callback, weighted=True, normalized=True):
        Centrality.__init__(self) # init Worker Thread Class

        self.callback = callback
        self.weighted = weighted
        self.normalized = normalized
        self.column_name = 'closeness'
        self.path = path
        self.file_name = fileName
        self.path_2_shp = os.path.join(self.path, self.file_name) + '.shp'
        self.path_2_log = os.path.join(self.path, self.file_name) + '.log'

        self.G = nx.Graph()
        self.buildQuery()

        self.start() # start the thread
Example #3
0
    def __init__(self, path, fileName, callback, normalized=True):
        Centrality.__init__(self)  # init Worker Thread Class

        self.callback = callback
        self.normalized = normalized
        self.column_name = 'straightness'
        self.path = path
        self.file_name = fileName
        self.path_2_shp = os.path.join(self.path, self.file_name) + '.shp'
        self.path_2_log = os.path.join(self.path, self.file_name) + '.log'

        self.weighted = True
        self.G = nx.Graph()
        self.buildQuery()

        self.start()  # start the thread
Example #4
0
    def __init__(self,
                 path,
                 fileName,
                 callback,
                 k=None,
                 weighted=True,
                 normalized=True):
        Centrality.__init__(self)  # init Worker Thread Class
        self.callback = callback
        self.k = k
        self.weighted = weighted
        self.normalized = normalized
        self.column_name = 'betweenness'
        self.path = path
        self.file_name = fileName
        self.path_2_shp = os.path.join(self.path, self.file_name) + '.shp'
        self.path_2_log = os.path.join(self.path, self.file_name) + '.log'

        self.G = nx.MultiGraph()
        self.buildQuery()
        self.start()
Example #5
0
    def __init__(self,
                 path,
                 radius,
                 fileName,
                 callback,
                 weighted=True,
                 normalized=True,
                 local=True):
        Centrality.__init__(self)  # init Worker Thread Class
        self.radius = radius
        self.callback = callback
        self.weighted = weighted
        self.normalized = normalized
        self.local = local
        self.column_name = 'closeness'
        self.path = path
        self.file_name = fileName
        self.path_2_shp = os.path.join(self.path, self.file_name) + '.shp'
        self.path_2_log = os.path.join(self.path, self.file_name) + '.log'
        self.G = nx.MultiGraph()
        self.buildQuery()

        self.start()  # start the thread