A graph-theory method to establish serological relationships within a bacterial taxon, with example from Porphyromonas gingivalis