A Hopf algebra on subgraphs of a graph