tests added, graph functions excluded to the separate file