Пример #1
0
def buildConceptMap(p,envName,graphName):
  model = ConceptMapModel(p.conceptMapModel(envName).values(),envName,'',True)
  if (model.size() == 0):
    return False
  parser = KaosXDotParser('conceptmap',model.graph())
  parser.cfSet = True
  graph = parser.parse()
  drawGraph(graph,graphName)
  return True
Пример #2
0
def buildConceptMap(p, envName, graphName):
    model = ConceptMapModel(
        p.conceptMapModel(envName).values(), envName, '', True)
    if (model.size() == 0):
        return False
    parser = KaosXDotParser('conceptmap', model.graph())
    parser.cfSet = True
    graph = parser.parse()
    drawGraph(graph, graphName)
    return True
Пример #3
0
def buildConceptMap(p,envName,graphName):
  from cairis.gui.kaosxdot import KaosXDotParser
  from cairis.gui.ConceptMapModel import ConceptMapModel
  model = ConceptMapModel(list(p.conceptMapModel(envName).values()),envName,'',True)
  if (model.size() == 0):
    return False
  parser = KaosXDotParser('conceptmap',model.graph())
  parser.cfSet = True
  graph = parser.parse()
  drawGraph(graph,graphName)
  return True