Graph invariants from the topology of rigid isotopy classes