Added directed graph and minor changes on cmty detection algorithms

Added directed graph and the basic manipulation methods
Minor changes on InfoMap cmty detection algorithm (cmty.cpp & cmty.h)
Some additions on the graphextract example - deriving an array of graph based on an attribute from a table