This repository has been archived by the owner on Oct 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 81
Graphs is too general to be useful #171
Comments
I bumped up
to
|
What did you set MAX_TYPE_DEPTH to? I'd definitely consider increasing the default. |
@JeffBezanson, I just changed it from 4 to 5. |
That seems pretty reasonable. |
This issue also affects arrays of Graph objects, i.e.,
cannot be type inferred. |
This was referenced Jun 25, 2015
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
There have been some grumbles before about this in the abstract sense, but here's a concrete technical example of how the overparameterization of the
Graph
object limits its usability:With Julia 0.4:
Note that the return type of
Pair
can't be inferred. I'm guessing this is because ofMAX_TYPE_DEPTH
recently discussed here.In general it seems like any type which is parameterized by a type of a graph suffers from this. This affects
TargetIterator
,SourceIterator
,out_neighbors
,in_neighbors
, and maybe more.@lindahua @sbromberger @JeffBezanson @IainNZ
The text was updated successfully, but these errors were encountered: