Handy factory method to load data from a file.
(cls, wire_file)
| 52 | |
| 53 | @classmethod |
| 54 | def create_from_file(cls, wire_file): |
| 55 | """ Handy factory method to load data from a file. |
| 56 | """ |
| 57 | wire_network = cls() |
| 58 | wire_network.load_from_file(wire_file) |
| 59 | return wire_network |
| 60 | |
| 61 | @classmethod |
| 62 | def create_from_data(cls, vertices, edges): |
no test coverage detected