Пример #1
0
def analyzeGraph(gdb):
    concepts = None

    start_time = ArchiLib.startTimer()

    ag = AnalyzeGraph(gdb)

    ag.analyzeNetworkX(concepts, fileConceptsExport)

    ArchiLib.stopTimer(start_time)
Пример #2
0
def test_AnalyzeGraph(cleandir, gdb):

    nj = Neo4JLib(gdb)

    assert(nj.neo4jCounts() is not None)

    ag = AnalyzeGraph(gdb)

    assert (os.path.isfile(fileConceptsExport) is True)

    ag.analyzeNetworkX(None, fileConceptsExport)
Пример #3
0
logger = setupLogging(__name__)
logger.setLevel(logging.INFO)

from al_lib.Constants import *
from al_lib.ArchiLib import ArchiLib
from al_lib.ExportArchi import ExportArchi
from al_lib.ConceptsImportNeo4J import ConceptsImportNeo4J
from al_lib.AnalyzeGraph import AnalyzeGraph


if __name__ == u"__main__":

    start_time = ArchiLib.startTimer()

    fileArchimate = u"/Users/morrj140/Documents/SolutionEngineering/Archimate Models/CMS into ECM V5.archimate"

    al = ArchiLib(fileArchimate)
    ea = ExportArchi(fileArchimate, fileConceptsExport)

    logger.info(u"...Export Archi...")
    concepts = ea.exportArchi()

    logger.info(u"...Import Neo4J...")
    in4j = ConceptsImportNeo4J(fileArchimate, gdb, ClearNeo4J=True)
    in4j.importNeo4J(concepts)

    logger.info(u"...Analyze NetworkX...")
    ag = AnalyzeGraph(gdb)
    ag.analyzeNetworkX(concepts, fileConceptsExport)

    ArchiLib.stopTimer(start_time)