Port of java subproject to Intellij.
Started defining generic graph and vertex structures