Hi All,
I am terribly sorry about asking trivial things, but I am complete beginner when it comes to Mathematica. I also have yet to master a skill of searching through previously posted questions and answers on this forum as I just registered.
I am trying to created a list of directed edges from a list of ordered pairs. So I start with
V = {1,2}
G = Tuples[{V, V}]
DirectedEdge /@ G
Unfortunately, I have extra curly brackets so my output is
{DirectedEdge[{1, 1}], DirectedEdge[{1, 2}], DirectedEdge[{2, 1}],
DirectedEdge[{2, 2}]}
Instead of what I really need
{DirectedEdge[1, 1], DirectedEdge[1, 2], DirectedEdge[2, 1],
DirectedEdge[2, 2]}
I am so sorry for bad formatting. I will fix things a bit later as I am in a hurry to fix the problem.