Skip to content

Commit

Permalink
fix(analytical): involving triangles (#4067)
Browse files Browse the repository at this point in the history
  • Loading branch information
siyuan0322 authored Jul 18, 2024
1 parent 3956368 commit 85cb032
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions python/graphscope/analytical/app/triangles.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# limitations under the License.
#

import logging

from graphscope.framework.app import AppAssets
from graphscope.framework.app import not_compatible_for
Expand All @@ -24,6 +25,8 @@

__all__ = ["triangles"]

logger = logging.getLogger("graphscope")


@project_to_simple
@not_compatible_for("arrow_property", "dynamic_property")
Expand Down Expand Up @@ -52,7 +55,7 @@ def triangles(graph):
"""
if graph.is_directed():
raise InvalidArgumentError(
"Triangles does not support be queried upon directed graph."
logger.warning(
"Triangles may not be consistent when be queried upon directed graph."
)
return AppAssets(algo="triangles", context="vertex_data")(graph)

0 comments on commit 85cb032

Please sign in to comment.