complete implementation for importing snap networks. debugging necessary!