You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by greghogan <gi...@git.apache.org> on 2017/07/26 19:51:25 UTC

[GitHub] flink pull request #4405: [FLINK-7273] [gelly] Gelly tests with empty graphs

GitHub user greghogan opened a pull request:

    https://github.com/apache/flink/pull/4405

    [FLINK-7273] [gelly] Gelly tests with empty graphs

    ## What is the purpose of the change
    
    This was prompted by user feedback comparing Gelly's `PageRank` which noticed that zero-degree vertices (not present in the edge set) were not included in the computation. There existed an `EmptyGraph` generated which was sometimes used. This PR adds missing tests using empty edge and vertex sets for each algorithm.
    
    ## Brief change log
    
    There exist some tests with empty graphs but the `EmptyGraph` in `AsmTestBase` contained vertices but no edges. Add a new `EmptyGraph` without vertices and test both empty graphs for each algorithm.
    
    EmptyGraph now generates the proper TypeInformation (for Edge<> not Tuple3) which had prevented adding edges due to a union incompatibility.
    
    GraphGeneratorUtils#vertexSet now uses a hash-combine for distinct.
    
    `PageRank` optionally includes zero-degree vertices in the results (at a performance cost).
    
    ## Verifying this change
    
    This change added tests and can be verified as follows: running new unit tests
    
    ## Does this pull request potentially affect one of the following parts:
    
      - Dependencies (does it add or upgrade a dependency): (yes / **no**)
      - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: (yes / **no**)
      - The serializers: (yes / **no** / don't know)
      - The runtime per-record code paths (performance sensitive): (yes / **no** / don't know)
      - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (yes / **no** / don't know)
    
    ## Documentation
    
      - Does this pull request introduce a new feature? (**yes** / no)
      - If yes, how is the feature documented? (not applicable / **docs** / JavaDocs / not documented)

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/greghogan/flink 7273_gelly_tests_with_empty_graphs

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/4405.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #4405
    
----
commit 060db79d29782ba9078b1461c74019c4c68ae224
Author: Greg Hogan <co...@greghogan.com>
Date:   2017-07-26T10:23:52Z

    [FLINK-7273] [gelly] Gelly tests with empty graphs
    
    There exist some tests with empty graphs but the `EmptyGraph` in
    `AsmTestBase` contained vertices but no edges. Add a new `EmptyGraph`
    without vertices and test both empty graphs for each algorithm.
    
    EmptyGraph now generates the proper TypeInformation (for Edge<> not
    Tuple3) which had prevented adding edges due to a union incompatibility.
    
    GraphGeneratorUtils#vertexSet now uses a hash-combine for distinct.
    
    `PageRank` optionally includes zero-degree vertices in the results
    (at a performance cost).

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] flink pull request #4405: [FLINK-7273] [gelly] Gelly tests with empty graphs

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/flink/pull/4405


---