(self, start_or_end)
| 599 | return node_or_edge_data |
| 600 | |
| 601 | def alter_graph_mode_timeformat(self, start_or_end): |
| 602 | if self.graph_element.get("mode") == "static": |
| 603 | if start_or_end is not None: |
| 604 | if isinstance(start_or_end, str): |
| 605 | timeformat = "date" |
| 606 | elif isinstance(start_or_end, float): |
| 607 | timeformat = "double" |
| 608 | elif isinstance(start_or_end, int): |
| 609 | timeformat = "long" |
| 610 | else: |
| 611 | raise AssertionError( |
| 612 | "timeformat should be of the type int, float or str" |
| 613 | ) |
| 614 | self.graph_element.set("timeformat", timeformat) |
| 615 | self.graph_element.set("mode", "dynamic") |
| 616 | |
| 617 | def write(self, fh): |
| 618 | if self.prettyprint: |
no outgoing calls
no test coverage detected