Changed example file to a graph with multipe componenets
Added ability to compute componenets