I am trying to draw a directed graph but am having trouble getting it to work. Please help. I have tried the "->" and also "Direct" inputs but neither seem to work.
\documentclass[12pt]{article} \usepackage[margin=1in]{geometry} \usepackage{amsmath,amsthm,amssymb} \usepackage{tikz-network} \usepackage{tikz} \usepackage{array} \usepackage{tkz-graph} \usepackage{graphicx} \usetikzlibrary{graphs, graphdrawing} \begin{document} \begin{tikzpicture} \Vertex[x=-6,y=1]{x} \Vertex[x=8,y=1]{y} \Vertex[x=4,y=2]{0001} \Vertex[x=-2,y=2]{1001} \Vertex[x=-2,y=-2]{0101} \Vertex[x=4,y=-2]{1101} \Vertex[x=-2,y=-4]{0011} \Vertex[x=4,y=-4]{1011} \Vertex[x=4,y=-6]{0111} \Vertex[x=-2,y=-6]{1111} \Vertex[x=-2,y=8]{0000} \Vertex[x=4,y=8]{1000} \Vertex[x=4,y=4]{0010} \Vertex[x=-2,y=4]{1010} \Vertex[x=4,y=6]{0100} \Vertex[x=-2,y=6]{1100} \Vertex[x=-2,y=0]{0110} \Vertex[x=4,y=0]{1110} \Edge[](0001)(1001) \Edge[](0001)(0011) \Edge[color=red](0001)(0101) \Edge[](0101)(1101) \Edge[](0101)(0111) \Edge[](1011)(1111) \Edge[color=red](1011)(1001) \Edge[](1011)(0011) \Edge[color=red](1111)(0111) \Edge[](1111)(1101) \Edge[](0111)(0011) \Edge[](1101)(1001) \Edge[](0000)(1000) \Edge[color=red](0000)(0010) \Edge[](0000)(0100) \Edge[color=red](0100)(1100) \Edge[](0100)(0110) \Edge[color=red](1010)(1110) \Edge[](1010)(1000) \Edge[](1010)(0010) \Edge[](1110)(0110) \Edge[](1110)(1100) \Edge[](0110)(0010) \Edge[](1100)(1000) \Edge[](0000)(0001) \Edge[](1000)(1001) \Edge[](0010)(0011) \Edge[](1010)(1011) \Edge[](0100)(0101) \Edge[](1100)(1101) \Edge[](0110)(0111) \Edge[](1110)(1111) \Edge[color=red,->](x)(0000) \Edge[color=red,Direct](x)(1100) \Edge[color=red](x)(1010) \Edge[color=red](x)(1001) \Edge[](x)(0110) \Edge[color=red](x)(0101) \Edge[](x)(0011) \Edge[color=red](x)(1111) \Edge[](y)(1000) \Edge[color=red](y)(0100) \Edge[color=red](y)(0010) \Edge[color=red](y)(0001) \Edge[color=red](y)(1110) \Edge[](y)(1101) \Edge[color=red](y)(1011) \Edge[color=red](y)(0111) \end{tikzpicture} \end{document} 
tikz-networkandtikz-graphdefine lots of stuff with the same names. If you comment outtikz-network, most of the problems go away. Then, theDirectand->are undefined, so you need to remove those. If you want to add arrows, you might need to use lower level commands. Regardless, the naming conflicts fromtikz-networkandtikz-graphare the primary concern.