networkAnalysis
index
/home/mark/.qgis2/python/plugins/StreetAnalysis/networkAnalysis.py

Method to conduct the analysis as described in:
Porta et al. 2006. The network analysi of urban streets: a primal approach. Evironment and Planning B: Planning and Design 33:705-725.
 
The class conducts efficiency tests on the entire graph and also on nodes. Centrality measures are also conducted. 
Created on Nov 12, 2018
 
__author__: Mark Altaweel
__version__: 1.0

 
Modules
       
csv
loadApplyModel
math
networkx
os

 
Functions
       
centralityMeasures(G)
Method does three different centrality measures. This includes betweenness, closeness, and degree centarlity for nodes.
G-- the graph to be analyzed
efficiencyCentrality(G)
Method conducts efficiency centrality onn the graph.
G-- the graph to be analyzed
getOutuptPath(text2, fileType)
The output files' path determined by the folder to plae the output and the name of the file for output.
text2 -- the output path for the output folder
fileType -- the file to output to the output folder
nodez(G)
Method to return two sets of list of nodes in the graph, with both lists being the same.
nodes-- the first list of nodes
nodes2-- the second list of nodes
printGlobalEfficiency(res, loc, fileType)
Method to print out global efficiency.
res-- the results to print out from the graph
loc-- the directory location to print out to
fileType-- the file to print results on
printNodeCentrality(loc, fileType, bet, cent, degree)
Method to print node centrality.
loc- the folder location to print out to
fileType-- the name of the file to print results to
bet-- the betweenness centality results
cent-- closeness centrality output
degree-- degree centrality output
printResults(results, loc, fileType)
Method to output some of the measures results excluding global efficiency and node centrality measures.
results-- the results to print out
loc-- the directory location to printout the files to
fileType-- the file to output
qAlpha(...)
qAlpha(int) -> int
qBlue(...)
qBlue(int) -> int
qDrawBorderPixmap(...)
qDrawBorderPixmap(QPainter, QRect, QMargins, QPixmap)
qDrawPlainRect(...)
qDrawPlainRect(QPainter, int, int, int, int, QColor, int lineWidth=1, QBrush fill=None)
qDrawPlainRect(QPainter, QRect, QColor, int lineWidth=1, QBrush fill=None)
qDrawShadeLine(...)
qDrawShadeLine(QPainter, int, int, int, int, QPalette, bool sunken=True, int lineWidth=1, int midLineWidth=0)
qDrawShadeLine(QPainter, QPoint, QPoint, QPalette, bool sunken=True, int lineWidth=1, int midLineWidth=0)
qDrawShadePanel(...)
qDrawShadePanel(QPainter, int, int, int, int, QPalette, bool sunken=False, int lineWidth=1, QBrush fill=None)
qDrawShadePanel(QPainter, QRect, QPalette, bool sunken=False, int lineWidth=1, QBrush fill=None)
qDrawShadeRect(...)
qDrawShadeRect(QPainter, int, int, int, int, QPalette, bool sunken=False, int lineWidth=1, int midLineWidth=0, QBrush fill=None)
qDrawShadeRect(QPainter, QRect, QPalette, bool sunken=False, int lineWidth=1, int midLineWidth=0, QBrush fill=None)
qDrawWinButton(...)
qDrawWinButton(QPainter, int, int, int, int, QPalette, bool sunken=False, QBrush fill=None)
qDrawWinButton(QPainter, QRect, QPalette, bool sunken=False, QBrush fill=None)
qDrawWinPanel(...)
qDrawWinPanel(QPainter, int, int, int, int, QPalette, bool sunken=False, QBrush fill=None)
qDrawWinPanel(QPainter, QRect, QPalette, bool sunken=False, QBrush fill=None)
qFuzzyCompare(...)
qFuzzyCompare(QMatrix, QMatrix) -> bool
qFuzzyCompare(QMatrix4x4, QMatrix4x4) -> bool
qFuzzyCompare(QQuaternion, QQuaternion) -> bool
qFuzzyCompare(QTransform, QTransform) -> bool
qFuzzyCompare(QVector2D, QVector2D) -> bool
qFuzzyCompare(QVector3D, QVector3D) -> bool
qFuzzyCompare(QVector4D, QVector4D) -> bool
qGray(...)
qGray(int, int, int) -> int
qGray(int) -> int
qGreen(...)
qGreen(int) -> int
qIsGray(...)
qIsGray(int) -> bool
qRed(...)
qRed(int) -> int
qRgb(...)
qRgb(int, int, int) -> int
qRgba(...)
qRgba(int, int, int, int) -> int
qSwap(...)
qSwap(QBitmap, QBitmap)
qSwap(QBrush, QBrush)
qSwap(QIcon, QIcon)
qSwap(QImage, QImage)
qSwap(QKeySequence, QKeySequence)
qSwap(QPen, QPen)
qSwap(QPicture, QPicture)
qSwap(QPixmap, QPixmap)
qt_x11_wait_for_window_manager(...)
qt_x11_wait_for_window_manager(QWidget)
run()
Method to call and run the analysis.
runGlobalEfficiency(G)
This algorithm conducts global efficiency calculations. Effectively this looks at the overall graph's efficiency
G-- the graph analyzed
straightnessCentrality(G)
Method conducting straightness centrality.
G-- the graph to be analyzed.

 
Data
        QWIDGETSIZE_MAX = 16777215
filename = ''
qApp = <PyQt4.QtGui.QApplication object>