I have a huge road network data, I have two attributes from node and to node. I have to set direction of the line from node to to node irrespective digitizing direction
Does that mean you actually want to reorder the polylines or do you want some indicator in the table that the order goes with or against the order of digitizing?
Flip Line—Help | ArcGIS Desktop
If you know or have the coordinates of "from" or the "to" location you could compare them to the 'StartX, StartY' using
Add Geometry Attributes—Data Management toolbox | ArcGIS Desktop
to get those values. If they differ, then you could query for the flip line tool