adding functions for networkx network building, drawing
adding function for processing candidate file