Skip to content

Triangle Counting #15

Open
Open

Description

@neoblizz
No description provided.

Activity

  1. self-assigned this
    on Oct 25, 2022
  2. removed their assignment
    on Oct 25, 2022
  3. pradkrish commented on Dec 7, 2022

    @pradkrish

    Hello, can I give this a go?

    An implementation with the following function signature size_t triangleCount(adjacency_list)

  4. neoblizz commented on Dec 7, 2022

    @neoblizz
    ContributorAuthor

    Hey, yes! If you want to take a stab at it, please go ahead. Here's a good reference on which we are basing some this work on: https://github.com/pnnl/NWGraph/blob/master/include/nwgraph/algorithms/triangle_count.hpp @pradkrish

  5. pradkrish commented on Dec 10, 2022

    @pradkrish

    Thanks, you can assign it to me. :)

  6. pradkrish commented on Dec 12, 2022

    @pradkrish

    I went through the implementation in nwgraph and I have a fairly good understanding of it.

    In graph-v2, load_ordered_graph and load_graph are used for loading directed graphs but it is not very clear to me how to load undirected graphs, is it currently possible to load an undirected graph? I am asking this because triangle counting is typically used for undirected graphs.

  7. neoblizz commented on Dec 12, 2022

    @neoblizz
    ContributorAuthor

    I went through the implementation in nwgraph and I have a fairly good understanding of it.

    In graph-v2, load_ordered_graph and load_graph are used for loading directed graphs but it is not very clear to me how to load undirected graphs, is it currently possible to load an undirected graph? I am asking this because triangle counting is typically used for undirected graphs.

    @lums658 @pratzl can answer this, I feel like it is related to the MatrixMarket loader issue #47. I think what we really need for that is edge-doubling to allow any graph to be undirected.

  8. lums658 commented on Dec 12, 2022

    @lums658
    Collaborator
  9. lums658 commented on Dec 13, 2022

    @lums658
    Collaborator

    PS -- See the mmio functionality and build.hpp in NWGraph.

  10. pradkrish commented on Dec 13, 2022

    @pradkrish

    @lums658 Thanks for the input. I guess it makes sense to roughly break this down into the following steps with separate PR and tests for each.

    • edge list concept and an I/O function to read edge list (directed and undirected) from a file
    • Convert edge list graph to adjacency list graph
    • triangle count implementation

    do you think I get that right? Please correct me if I am wrong. :)

  11. lums658 commented on Dec 13, 2022

    @lums658
    Collaborator
  12. pratzl commented on Dec 14, 2022

    @pratzl
    Collaborator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions