Login | Register
My pages Projects Community openCollabNet

How to list the names of all edges and vertices

When working with mbt, it is sometimes useful to get a list of all the unique names of the edges and vertices in a model.

For example, say that you are working with IBM Functional Tester, and need to know which methods you need to implement, so that when executing the test, every edge and vertex is represented in the script of the tool.

Example:

$> java -jar mbt.jar methods -f keepass.graphml
e_Cancel
e_CloseApp
e_CloseDB
e_CloseDialog
e_EnterCorrectKey
e_EnterInvalidKey
e_Initialize
e_No
e_Start
e_StartWithDatabase
e_Yes
v_EnterMasterCompositeMasterKey
v_InvalidKey
v_KeePassNotRunning
v_MainWindowEmpty
v_MainWindow_DB_Loaded
v_SaveBeforeCloseLock

Above, we listed all the unique names of edges and vertices in a graph keepass.graphml (see Simple models). This means, that if a script contains methods representing all the names in the list above, an execution of the model foo.graphml will not miss any edges or vertices.