Using the VSEPR theory, the electron bond pairs and lone pairs on the center atom will help us predict the shape of a molecule. The shape of a molecule is determined by the location of the nuclei and its electrons. The electrons and the nuclei settle into positions that minimize repulsion and maximize attraction.
The differences in the properties of diamond and graphite is as a result of how their particles are arranged in space. This space arrangement leads to distinct crystal structures for the two compounds. In diamond, the carbon atoms are arranged in tetrahedral shape while in graphite the carbon atoms arrayed in planes.
Hope this helps :)