def create_graphs(self):
        """Creates the graphs in the database."""
        if not self.db.has_graph("threat_graph"):
            self.db.create_graph(
                "threat_graph",
                edge_definitions=[
                    {
                        "edge_collection": "links",
                        "from_vertex_collections": [
                            "observables",
                            "entities",
                            "indicators",
                            "dfiq",
                        ],
                        "to_vertex_collections": [
                            "observables",
                            "entities",
                            "indicators",
                            "dfiq",
                        ],
                    }
                ],
            )
        if not self.db.has_graph("systemroles"):
            self.db.create_graph(
                "systemroles",
                edge_definitions=[
                    {
                        "edge_collection": "acls",
                        "from_vertex_collections": ["users", "groups"],
                        "to_vertex_collections": [
                            "groups",
                            "observables",
                            "entities",
                            "indicators",
                            "dfiq",
                        ],
                    }
                ],
            )
Creates the graphs in the database.
core/database_arango.py