### Create Network Vertices with tikz-network Source: https://context7.com/hackl/tikz-network/llms.txt Demonstrates how to create individual network vertices (nodes) using the \Vertex command in tikz-network. It covers basic creation, positioning, custom sizing, coloring, opacity, and different geometric shapes. No external dependencies are required beyond the tikz-network package. ```latex \documentclass{standalone} \usepackage{tikz-network} \begin{document} \begin{tikzpicture} % Basic vertex at origin with label A \Vertex{A} % Vertex at position (1,1) with label B \Vertex[x=1,y=1]{B} % Custom sized vertex at (2,0) \Vertex[x=2,size=.8,color=red,opacity=.7]{C} % Different shapes \Vertex[x=3,shape=rectangle]{D} \Vertex[x=4,shape=diamond]{E} \end{tikzpicture} \end{document} ``` -------------------------------- ### Connect Vertices with Edges using tikz-network Source: https://context7.com/hackl/tikz-network/llms.txt Illustrates the use of the \Edge command in tikz-network to create connections between vertices. This includes creating simple, directed, curved, and self-looping edges, with options for labels, colors, line widths, and arrow styles. Requires pre-defined vertices. ```latex \documentclass{standalone} \usepackage{tikz-network} \begin{document} \begin{tikzpicture} \Vertex{A} \Vertex[x=2,y=1]{B} \Vertex[x=4]{C} % Simple edge from A to B \Edge(A)(B) % Directed edge with arrow \Edge[Direct](B)(C) % Curved edge with label \Edge[label=weight:5,bend=30,color=red,lw=2pt](A)(C) % Self-loop \Edge[loopsize=1cm,loopposition=90](C)(C) \end{tikzpicture} \end{document} ``` -------------------------------- ### Load Vertices from CSV with tikz-network Source: https://context7.com/hackl/tikz-network/llms.txt Shows how to import vertex definitions in bulk from a CSV file using the \Vertices command. This enables data-driven network generation, supporting per-vertex property specifications and global style overrides. The CSV format includes fields for position, size, color, and labels. ```latex \documentclass{standalone} \usepackage{tikz-network} \begin{document} \begin{tikzpicture} % Load all vertices from CSV file \Vertices{network_vertices.csv} % Load vertices with global style overrides \Vertices[opacity=0.8,Math]{network_vertices.csv} \end{tikzpicture} \end{document} ``` -------------------------------- ### Create Background Planes for Layers with tikz-network Source: https://context7.com/hackl/tikz-network/llms.txt Details the usage of the \Plane command for creating background planes, primarily for visualizing multilayer networks in 3D. It supports specifying layer, dimensions, color, opacity, and grid properties. This command helps in organizing and differentiating network layers visually. ```latex \documentclass{standalone} \usepackage{tikz-network} \begin{document} \begin{tikzpicture}[multilayer=3d] % Background plane for layer 1 \Plane[layer=1,width=4,height=3,color=blue,opacity=0.2,grid=0.5] % Layer 2 with different styling \Plane[layer=2,width=4,height=3,color=red,opacity=0.1,InBG] % Vertices on different layers \Vertex[x=1,y=1,layer=1]{A} \Vertex[x=2,y=1,layer=2]{B} % Inter-layer edge \Edge(A)(B) \end{tikzpicture} \end{document} ``` -------------------------------- ### Create Layered Environments with Layer Environment Source: https://context7.com/hackl/tikz-network/llms.txt Defines a scoped environment for placing vertices and edges on specific layers in 3D multilayer network visualizations. Allows for explicit layer assignment and visualization of network depth. Requires tikz-network and the 'multilayer=3d' option. ```latex \documentclass{standalone} \usepackage{tikz-network} \begin{document} \begin{tikzpicture}[multilayer=3d] \SetLayerDistance{-2} % Layer 1 \begin{Layer}[layer=1] \Vertex{A} \Vertex[x=2]{B} \Edge(A)(B) \end{Layer} % Layer 2 at different z-position \begin{Layer}[layer=2] \Vertex{C} \Vertex[x=2]{D} \Edge(C)(D) \end{Layer} % Cross-layer connections \Edge(A)(C) \end{tikzpicture} \end{document} ``` -------------------------------- ### Configure Default Vertex Style with \SetVertexStyle Source: https://context7.com/hackl/tikz-network/llms.txt Globally sets default styling properties for all subsequent vertices, including shape, size, colors, and line width. Overrides can still be applied to individual vertices. Dependencies include the tikz-network package. ```latex \documentclass{standalone} \usepackage{tikz-network} \begin{document} \begin{tikzpicture} % Set custom default vertex style \SetVertexStyle[Shape=rectangle,MinSize=0.8cm,FillColor=blue!30, LineWidth=2pt,LineColor=blue,TextColor=white] % All vertices now use the custom style \Vertex{A} \Vertex[x=2]{B} \Vertex[x=4]{C} % Individual overrides still work \Vertex[x=6,color=red]{D} \end{tikzpicture} \end{document} ``` -------------------------------- ### Load Edges from CSV with tikz-network Source: https://context7.com/hackl/tikz-network/llms.txt Demonstrates bulk importing of edge definitions from a CSV file using the \Edges command. This command supports specifying edge properties such as labels, colors, line widths, bend angles, and directional properties directly from the CSV data. Requires pre-defined vertices or loading them first. ```latex \documentclass{standalone} \usepackage{tikz-network} \begin{document} \begin{tikzpicture} % First define vertices \Vertices{network_vertices.csv} % Then load edges \Edges{network_edges.csv} % Load edges with global properties \Edges[Direct,lw=2pt]{network_edges.csv} \end{tikzpicture} \end{document} ``` -------------------------------- ### Add Text Annotations with tikz-network Source: https://context7.com/hackl/tikz-network/llms.txt Explains how to add text annotations to a tikz-network diagram using the \Text command. This allows for placing text at specific coordinates with customizable styling, including color, font size, and rotation. Useful for titles, labels, or explanatory notes within the network visualization. ```latex \documentclass{standalone} \usepackage{tikz-network} \begin{document} \begin{tikzpicture} \Vertex{A} \Vertex[x=2]{B} % Simple text at position \Text[x=1,y=-0.5]{Network Title} % Styled text annotation \Text[x=3,y=1,color=red,fontsize=\large,rotation=45]{Important} % Text with custom positioning \Text[x=0,y=1.5,anchor=west]{Source Node} \end{tikzpicture} \end{document} ``` -------------------------------- ### Configure Default Edge Style with \SetEdgeStyle Source: https://context7.com/hackl/tikz-network/llms.txt Globally sets default styling for all subsequent edges, including arrow style, line width, color, and label properties. Individual edges can still be styled differently. Requires the tikz-network package. ```latex \documentclass{standalone} \usepackage{tikz-network} \begin{document} \begin{tikzpicture} % Configure default edge appearance \SetEdgeStyle[Arrow=-stealth,LineWidth=2pt,Color=blue!70, TextFont=\small,TextFillColor=yellow!20] \Vertex{A} \Vertex[x=2]{B} \Vertex[x=4]{C} % All edges use the custom style \Edge[Direct](A)(B) \Edge[Direct,label=flows](B)(C) \end{tikzpicture} \end{document} ``` -------------------------------- ### Apply Advanced Styling with RGB Colors Source: https://context7.com/hackl/tikz-network/llms.txt Enables precise color control for vertices and edges using RGB values, allowing for exact color matching and custom gradients. This provides greater flexibility in visual design compared to predefined color names or mixes. Requires the tikz-network package. ```latex \documentclass{standalone} \usepackage{tikz-network} \begin{document} \begin{tikzpicture} % Vertices with RGB colors \Vertex[RGB,color={255,100,100}]{A} \Vertex[x=2,RGB,color={100,255,100}]{B} \Vertex[x=4,RGB,color={100,100,255}]{C} % Edges can also use RGB via CSV or R,G,B parameters \Edge[RGB,R=200,G=200,B=0](A)(B) \Edge[RGB,R=150,G=0,B=150](B)(C) \end{tikzpicture} \end{document} ``` -------------------------------- ### Create Multilayer Networks from CSV Data Source: https://context7.com/hackl/tikz-network/llms.txt Generates multilayer networks by loading vertices and edges from CSV files. Automatically handles layer assignment and inter-layer connections, facilitating the visualization of complex networks from external data sources. Requires tikz-network and the 'multilayer=3d' option. ```latex \documentclass{standalone} \usepackage{tikz-network} \begin{document} \begin{tikzpicture}[multilayer=3d] \SetLayerDistance{-3} % Load vertices (must include 'layer' column in CSV) \Vertices{multilayer_vertices.csv} % Load edges with layer filtering \Edges[layer={1,2},vertices=multilayer_vertices.csv]{multilayer_edges.csv} % Add background planes \Plane[layer=1,width=5,height=4,opacity=0.1] \Plane[layer=2,width=5,height=4,opacity=0.1] \end{tikzpicture} \end{document} ``` -------------------------------- ### Configure 3D Projection Angles with \SetCoordinates Source: https://context7.com/hackl/tikz-network/llms.txt Defines the 3D coordinate system angles and scaling for multilayer network visualizations, controlling the perspective view. Essential for creating effective 3D network representations. Requires tikz-network and 'multilayer=3d'. ```latex \documentclass{standalone} \usepackage{tikz-network} \begin{document} \begin{tikzpicture}[multilayer=3d] % Custom 3D perspective \SetCoordinates[xAngle=-15,xLength=1,yAngle=45,yLength=1, zAngle=90,zLength=1.2] \Plane[layer=1,width=3,height=3] \Plane[layer=2,width=3,height=3] \Vertex[x=1,y=1,layer=1]{A} \Vertex[x=2,y=2,layer=2]{B} \Edge(A)(B) \end{tikzpicture} \end{document} ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.