direct creation of graphml with subset
corrected version created with igraph