On Vector Spaces Associated with a Graph