BalthazarArgall
BalthazarArgall
CC#
Created by BalthazarArgall on 12/9/2024 in #help
Verbosity to the point of unusability in generic graph class
Thank you for your time, really
50 replies
CC#
Created by BalthazarArgall on 12/9/2024 in #help
Verbosity to the point of unusability in generic graph class
Very well, I'll read up on extension method and try to implement that then
50 replies
CC#
Created by BalthazarArgall on 12/9/2024 in #help
Verbosity to the point of unusability in generic graph class
Not super keen on making this a static class unless I'm missing something, I was starting to think about factories to be honest
50 replies
CC#
Created by BalthazarArgall on 12/9/2024 in #help
Verbosity to the point of unusability in generic graph class
Would that reside inside the graph class?
50 replies
CC#
Created by BalthazarArgall on 12/9/2024 in #help
Verbosity to the point of unusability in generic graph class
Alright gimme a moment
50 replies
CC#
Created by BalthazarArgall on 12/9/2024 in #help
Verbosity to the point of unusability in generic graph class
Well, I need two vertices to create an edge, new or not
50 replies
CC#
Created by BalthazarArgall on 12/9/2024 in #help
Verbosity to the point of unusability in generic graph class
And I can't overload the method AddEdge now
50 replies
CC#
Created by BalthazarArgall on 12/9/2024 in #help
Verbosity to the point of unusability in generic graph class
Well, that worked
weightedGraph.AddEdge(new(new(new Foo(), 0), new(new Foo(), 0),0));
weightedGraph.AddEdge(new(new(new Foo(), 0), new(new Foo(), 0),0));
It looks...hard to parse though, would that be an acceptable fix?
50 replies
CC#
Created by BalthazarArgall on 12/9/2024 in #help
Verbosity to the point of unusability in generic graph class
Is that implicitly creating a class corresponding to what is asked by the function?
50 replies
CC#
Created by BalthazarArgall on 12/9/2024 in #help
Verbosity to the point of unusability in generic graph class
Well I maybe go that route then, I'll sacrifice some versatility I guess
50 replies
CC#
Created by BalthazarArgall on 12/9/2024 in #help
Verbosity to the point of unusability in generic graph class
This doesn't allow the user to have weighted edges/unweighted vertices though
50 replies
CC#
Created by BalthazarArgall on 12/9/2024 in #help
Verbosity to the point of unusability in generic graph class
Alright I see what you meant
50 replies
CC#
Created by BalthazarArgall on 12/9/2024 in #help
Verbosity to the point of unusability in generic graph class
Mh, no, indeed I don't plan on creating new types of vertices or edges, I didn;t include them but the only other class implementing IVertex is an Unweighted one and the only other class implementing IEdge is the same
50 replies
CC#
Created by BalthazarArgall on 12/9/2024 in #help
Verbosity to the point of unusability in generic graph class
What do you mean by "sort" of edge/vertex type? I only need the vertices and edges to either have weights or not
50 replies
CC#
Created by BalthazarArgall on 12/9/2024 in #help
Verbosity to the point of unusability in generic graph class
You're saying I should have DirectedUnweighted, DirectedWeighted graphs etc.?
50 replies
CC#
Created by BalthazarArgall on 12/9/2024 in #help
Verbosity to the point of unusability in generic graph class
Uh yes you're right I thought I was already at this step, let me re read that.
50 replies
CC#
Created by BalthazarArgall on 12/9/2024 in #help
Verbosity to the point of unusability in generic graph class
Well, if you want a graph with mixed weighted and unweighted vertices of course! :D
50 replies